Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Make pypi mirror configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
oremj committed Sep 12, 2012
1 parent e0273a6 commit 142e8d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/update/commander_settings.py.dist
Expand Up @@ -32,4 +32,5 @@ GUNICORN = [

CRON_NAME = "addons-dev"

VIRTUAL_ENV = "/data/www/addons-dev.allizom.org/venv"
VIRTUAL_ENV = '/data/www/addons-dev.allizom.org/venv'
PYPI_MIRROR = 'https://mrepo.mozilla.org/pypi/simple/'
3 changes: 2 additions & 1 deletion scripts/update/update.py
Expand Up @@ -16,7 +16,8 @@ def create_virtualenv(ctx):
venv = settings.VIRTUAL_ENV
ctx.local("virtualenv --distribute --system-site-packages --never-download %s" % venv)
ctx.local("rm -f %s/lib64 && ln -s ./lib %s/lib64" % (venv, venv))
ctx.local("%s/bin/pip install -I --download-cache=/tmp/pip-cache -i https://mrepo.mozilla.org/pypi/simple/ -r %s/requirements/prod.txt" % (venv, settings.SRC_DIR))
ctx.local("%s/bin/pip install -I --download-cache=/tmp/pip-cache -i %s -r %s/requirements/prod.txt" %
(venv, settings.PYPI_MIRROR, settings.SRC_DIR))
ctx.local("virtualenv --relocatable %s" % venv)


Expand Down

0 comments on commit 142e8d7

Please sign in to comment.