Skip to content

Commit f0a7308

Browse files
committed
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
1 parent 4cd3c48 commit f0a7308

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

env/pip.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install]
2+
ignore-installed = true
3+

ietf/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
4545

4646
# Virtualenv support
47-
virtualenv_activation = os.path.join(path, "bin", "activate_this.py")
47+
virtualenv_activation = os.path.join(path, "env", "bin", "activate_this.py")
4848
if os.path.exists(virtualenv_activation):
4949
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
5050

0 commit comments

Comments
 (0)