Description of problem:
Inside a virtual environment created with the 'virtualenv' command, the /usr/lib64/python2.5/site-packages path is missing.
Version-Release number of selected component (if applicable):
python-virtualenv-1.3-1.fc9.noarch
Steps to Reproduce:
1. Create a virtual environment like with 'virtualenv /tmp/env'
2. Compare paths outside and inside using
"python -c 'import sys, pprint; pprint.pprint(sys.path);'" and
"/tmp/env/bin/python -c 'import sys, pprint; pprint.pprint(sys.path);'"
respectively.
Description of problem: python2. 5/site- packages path is missing.
Inside a virtual environment created with the 'virtualenv' command, the /usr/lib64/
Version-Release number of selected component (if applicable): virtualenv- 1.3-1.fc9. noarch
python-
Steps to Reproduce: pprint( sys.path) ;'" and env/bin/ python -c 'import sys, pprint; pprint. pprint( sys.path) ;'"
1. Create a virtual environment like with 'virtualenv /tmp/env'
2. Compare paths outside and inside using
"python -c 'import sys, pprint; pprint.
"/tmp/
respectively.
Actual results: pprint( sys.path) ;' lib64/python25. zip', lib64/python2. 5', lib64/python2. 5/plat- linux2' , lib64/python2. 5/lib-tk' , lib64/python2. 5/lib-dynload' , lib64/python2. 5/site- packages' , lib64/python2. 5/site- packages/ Numeric' , lib64/python2. 5/site- packages/ PIL', lib64/python2. 5/site- packages/ gst-0.10' , lib64/python2. 5/site- packages/ gtk-2.0' , lib/python2. 5/site- packages' ]
% python -c 'import sys, pprint; pprint.
['',
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
% /tmp/env/bin/python -c 'import sys, pprint; pprint. pprint( sys.path) ;' env/lib/ python2. 5/site- packages/ setuptools- 0.6c9-py2. 5.egg', env/lib64/ python25. zip', env/lib64/ python2. 5', env/lib64/ python2. 5/plat- linux2' , env/lib64/ python2. 5/lib-tk' , env/lib64/ python2. 5/lib-dynload' , lib/python2. 5', lib64/python2. 5', lib64/python2. 5/lib-tk' , env/lib/ python2. 5/site- packages' , lib/python2. 5/site- packages' ]
['',
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/usr/
'/usr/
'/usr/
'/tmp/
'/usr/
Expected results: python2. 5/site- packages (and thus all paths below, like Numeric, PIL, etc.) are missing in the second output.
See how /usr/lib64/
Additional info: /bugs.launchpad .net/virtualenv /+bug/248558/ comments/ 2 (note that that is different from the original bug report) and propagated to OpenSuSE's bugtracker here: https:/ /bugzilla. novell. com/show_ bug.cgi? id=430761. That might be related if Fedora is also patching site.py.
A similar problem (on OpenSuSE) was described here https:/