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:
Henrik Levkowetz 2016-10-18 19:11:28 +00:00
parent 4cd3c484be
commit f0a730856b
2 changed files with 4 additions and 1 deletions

3
env/pip.conf vendored Normal file
View file

@ -0,0 +1,3 @@
[install]
ignore-installed = true

View file

@ -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))