1. Armin Ronacher
  2. virtualenv

Commits

ianb  committed f3ed5e5

[svn r3730] Look for a lib64 directory, and if it's different from the lib directory also add it to the path

  • Participants
  • Parent commits 65e3797
  • Branches trunk

Comments (0)

Files changed (1)

File support-files/site.py

View file
                                          "python" + sys.version[:3],
                                          "site-packages"),
                             os.path.join(prefix, "lib", "site-python")]
+                lib64_dir = os.path.join(prefix, "lib64", "python" + sys.version[:3], "site-packages")
+                if (os.path.exists(lib64_dir) and 
+                    os.path.realpath(lib64_dir) not in [os.path.realpath(p) for p in sitedirs]):
+                    sitedirs.append(lib64_dir)
                 try:
                     # sys.getobjects only available in --with-pydebug build
                     sys.getobjects