fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
08d8018
)
Use the right version of PIP.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Jun 2010 10:04:42 +0000
(12:04 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Jun 2010 10:04:42 +0000
(12:04 +0200)
deployment.py
patch
|
blob
|
history
diff --git
a/deployment.py
b/deployment.py
index
8f06d76
..
789d342
100644
(file)
--- a/
deployment.py
+++ b/
deployment.py
@@
-25,6
+25,9
@@
class DeploySite(object):
self.env['PYTHON_BIN'] = os.path.join(
self.env['PYTHON_BASE'], 'bin', 'python') + self.env['PYTHON_VERSION']
self.env['PYTHON_BIN'] = os.path.join(
self.env['PYTHON_BASE'], 'bin', 'python') + self.env['PYTHON_VERSION']
+ if 'PIP_BIN' not in self.env:
+ self.env['PIP_BIN'] = os.path.join(self.env['PYTHON_BASE'], 'bin', 'pip')
+
if 'PYTHON_SITE' not in self.env:
self.env['PYTHON_SITE'] = os.path.join(
self.env['PYTHON_BASE'], 'lib',
if 'PYTHON_SITE' not in self.env:
self.env['PYTHON_SITE'] = os.path.join(
self.env['PYTHON_BASE'], 'lib',
@@
-113,11
+116,11
@@
class PIPSite(DeploySite):
def install_dependencies(self):
self.info("Installing requirements")
def install_dependencies(self):
self.info("Installing requirements")
- os.system("
pip install -r %s" % self.find_resource('requirements.txt'
))
+ os.system("
%s install -r %s" % (self.env['PIP_BIN'], self.find_resource('requirements.txt')
))
try:
self.info("Installing local requirements")
try:
self.info("Installing local requirements")
- os.system("
pip install -r %s" % self.find_resource('requirements_local.txt'
))
+ os.system("
%s install -r %s" % (self.env['PIP_BIN'], self.find_resource('requirements_local.txt')
))
except ValueError:
pass
except ValueError:
pass