Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force use python2 #358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ deploy:
fi

init_db:
PYTHONPATH=. python db/init_db.py
PYTHONPATH=. python2 db/init_db.py

# TODO(david): This probably no longer works and needs to be updated.
seed_data:
@echo "*** Warning! This has not been updated in a while and is not guaranteed to work. ***"
@echo
@echo
@echo "Creating tables with some example data"
PYTHONPATH=. python db/seed.py
PYTHONPATH=. python2 db/seed.py
@echo "Scraping 100 plugins from vim.org."
PYTHONPATH=. python tools/scrape/scrape.py -s vim.org 100
PYTHONPATH=. python2 tools/scrape/scrape.py -s vim.org 100
@echo "Extracting GitHub repo URLs from descriptions."
PYTHONPATH=. python tools/scrape/build_github_index.py -s vim.org
PYTHONPATH=. python2 tools/scrape/build_github_index.py -s vim.org
@echo "Scraping discovered GitHub repos."
PYTHONPATH=. python tools/scrape/scrape.py -s github 30
PYTHONPATH=. python2 tools/scrape/scrape.py -s github 30

aggregate_tags:
PYTHONPATH=. python tools/aggregate.py
PYTHONPATH=. python2 tools/aggregate.py

build_github_index:
PYTHONPATH=. python tools/scrape/build_github_index.py
PYTHONPATH=. python2 tools/scrape/build_github_index.py

test:
tox
Expand All @@ -52,10 +52,10 @@ restore:
rethinkdb restore rethinkdb_dump_remote.tar.gz --force

auto_categorize:
PYTHONPATH=. python tools/auto_categorize.py
PYTHONPATH=. python2 tools/auto_categorize.py

review_submissions:
PYTHONPATH=. python tools/review_submitted_plugins.py
PYTHONPATH=. python2 tools/review_submitted_plugins.py

clean:
find . -name '*.pyc' -delete
Expand Down
2 changes: 1 addition & 1 deletion tools/local_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ echo "Starting rethinkdb"
rethinkdb serve -d db/rethinkdb_data &

echo "Starting flask server"
PYTHONPATH=. FLASK_CONFIG=../conf/flask_dev.py python web/server.py
PYTHONPATH=. FLASK_CONFIG=../conf/flask_dev.py python2 web/server.py