Note that simply copying the system site.py did not work for me neither. According to a message found on their mailinglist, the version in the virtualenv package is slightly modified. So maybe the right way is to use system's site.py, but apply virtualenv's modfications.
Here's a naive patch:
Index: python- virtualenv. spec ======= ======= ======= ======= ======= ======= ======= ======= ==== rpms/python- virtualenv/ devel/python- virtualenv. spec,v virtualenv. spec lib64.patch %{version} %{version}
=======
RCS file: /cvs/pkgs/
retrieving revision 1.5
diff -r1.5 python-
12a13
> Patch0: virtualenv-
28c29,33
< %setup -q -n virtualenv-
---
> %setup0 -q -n virtualenv-
> %if "%{_lib}" == "lib64"
> %patch0 -p1 -b .lib64
> %endif
> %{__python} rebuild-script.py
diff -up virtualenv- 1.3.1/support- files/site. py.orig virtualenv- 1.3.1/support- files/site. py 1.3.1/support- files/site. py.orig 2008-11-25 03:27:26.000000000 +0100 1.3.1/support- files/site. py 2008-12-03 00:38:40.000000000 +0100 (known_ paths, sys_pre
--- virtualenv-
+++ virtualenv-
@@ -213,6 +213,10 @@ def addsitepackages
elif os.sep == '/':
sitedirs = [os.path. join(prefix, join(prefix,
"lib",
"python" + sys.version[:3],
"site-packages" ),
+ "lib64",
+ "python" + sys.version[:3],
+ "site-packages"),
+ os.path.
This seems to work, but now there are too many dirs in the path:
% /tmp/env/bin/python -c 'import sys, pprint; pprint. pprint( sys.path) ;' env/lib64/ python2. 5/site- packages/ setuptools- 0.6c9-py2. 5.egg', 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/lib64/ python2. 5/site- packages' , env/lib/ python2. 5/site- packages' , 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' ]
['',
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/tmp/
'/usr/
'/usr/
'/usr/
'/tmp/
'/tmp/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
Note that simply copying the system site.py did not work for me neither. According to a message found on their mailinglist, the version in the virtualenv package is slightly modified. So maybe the right way is to use system's site.py, but apply virtualenv's modfications.