Well, if that works and the extra paths are not harming anything, I'm fine with using that patch ... at least for now. I'm going to run some tests with a modified version of the patch (- original virtualenv site.py, + my changes to the original virtualenv setup.py)....
Well, if that works and the extra paths are not harming anything, I'm fine with using that patch ... at least for now. I'm going to run some tests with a modified version of the patch (- original virtualenv site.py, + my changes to the original virtualenv setup.py)....
--- /tmp/site. py.virtualenv 2008-12-11 19:40:58.000000000 -0500 5/site. py 2008-12-11 20:50:55.000000000 -0500
"python" + sys.version[:3], "site-packages")]
+++ lib/python2.
@@ -201,11 +201,27 @@
elif os.sep == '/': join(prefix, join(prefix, "lib", "site-python")] /bugzilla. redhat. com/show_ bug.cgi? id=471617 join(prefix, path("lib" )] append( __easy_ path(platform. processor( )))
try:
# sys.getobjects only available in --with-pydebug build
sys.getobjects
- sitedirs = [os.path.
- "lib",
- "python" + sys.version[:3],
- "site-packages"),
- os.path.
+ # PATCH:BZ471617
+ # https:/
+ import platform
+ # Maps the processor type with the library path name
+ lib_map = {'lib': 'lib',
+ 'x86_64': 'lib64'}
+
+ def __easy_path(cpu):
+ """
+ Simply returns a python path based on cpu and lib_map.
+ """
+ if cpu not in lib_map.keys():
+ return ''
+ return os.path.
+ lib_map[cpu],
+ "python" + sys.version[:3],
+ "site-packages")
+
+ sitedirs = [__easy_
+ sitedirs.
+ # END PATCH:BZ471617