From 6af842bbee5e81d3d6eecb69d61e61918e5b958b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 11 May 2010 13:02:49 +0200 Subject: [PATCH] Use the right PIP in deployment. --- deployment.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deployment.py b/deployment.py index b677fdf29..b156b9385 100644 --- a/deployment.py +++ b/deployment.py @@ -23,18 +23,21 @@ def restart_wsgi(): def update_application(): print "Updating repository.", os.system("cd %s; git pull" % PROJECT_ROOT) + print "Installing requirements" - os.system("pip install -r %s" % os.path.join(PROJECT_ROOT, 'requirements.txt')) + os.system("%s install -r %s" % (PIP, os.path.join(PROJECT_ROOT, 'requirements.txt'))) + print "Installing local requirements" - os.system("pip install -r %s" % os.path.join(ROOT, 'etc', 'requirements.txt')) + os.system("%s install -r %s" % (PIP, os.path.join(ROOT, 'etc', 'requirements.txt'))) print "done." ROOT = os.path.dirname(os.path.abspath(__file__)) PYTHON = os.path.join(ROOT, 'pythonenv', 'bin', 'python') +PIP = os.path.join(ROOT, 'pythonenv', 'bin', 'pip') PYTHON_SITE = os.path.join(ROOT, 'pythonenv', 'lib', 'python2.6', 'site-packages') -PROJECT_NAME = 'redakcja' +PROJECT_NAME = 'wolnelektury' PROJECT_ROOT = os.path.join(ROOT, 'application') MEDIA_ROOT = os.path.join(ROOT, 'www', 'media') -- 2.20.1