Added a pip config file to support virtualenvs created with option --system-site-packages. The recommended way of creating a virtualenv for the datatracker is now '$ virtualenv --system-site-packages env', placing the virtualenv libs and binaries under env/bin/ and env/lib/. Also updated the ietf/wsgi.py file to use this.
- Legacy-Id: 12172
This commit is contained in:
parent
4cd3c484be
commit
f0a730856b
3
env/pip.conf
vendored
Normal file
3
env/pip.conf
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[install]
|
||||||
|
ignore-installed = true
|
||||||
|
|
|
@ -44,7 +44,7 @@ import sys
|
||||||
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
# Virtualenv support
|
# Virtualenv support
|
||||||
virtualenv_activation = os.path.join(path, "bin", "activate_this.py")
|
virtualenv_activation = os.path.join(path, "env", "bin", "activate_this.py")
|
||||||
if os.path.exists(virtualenv_activation):
|
if os.path.exists(virtualenv_activation):
|
||||||
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
|
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue