diff -Nur Python-2.4.orig/Lib/distutils/command/install.py Python-2.4/Lib/distutils/command/install.py --- Python-2.4.orig/Lib/distutils/command/install.py 2004-12-23 09:49:49.805802000 +0000 +++ Python-2.4/Lib/distutils/command/install.py 2004-12-23 09:50:42.787747736 +0000 @@ -39,14 +39,14 @@ INSTALL_SCHEMES = { 'unix_prefix': { 'purelib': '$base/share/python$py_version_short/site-packages', - 'platlib': '$platbase/lib/python$py_version_short/site-packages', + 'platlib': '$platbase/lib64/python$py_version_short/site-packages', 'headers': '$base/include/python$py_version_short/$dist_name', 'scripts': '$base/bin', 'data' : '$base', }, 'unix_home': { 'purelib': '$base/share/python', - 'platlib': '$base/lib/python', + 'platlib': '$base/lib64/python', 'headers': '$base/include/python/$dist_name', 'scripts': '$base/bin', 'data' : '$base', diff -Nur Python-2.4.orig/Lib/distutils/sysconfig.py Python-2.4/Lib/distutils/sysconfig.py --- Python-2.4.orig/Lib/distutils/sysconfig.py 2004-12-23 09:49:49.806802000 +0000 +++ Python-2.4/Lib/distutils/sysconfig.py 2004-12-23 09:50:42.788747584 +0000 @@ -101,7 +101,7 @@ if os.name == "posix": if plat_specific: libpython = os.path.join(prefix, - "lib", "python" + get_python_version()) + "lib64", "python" + get_python_version()) else: libpython = os.path.join(prefix, "share", "python" + get_python_version()) diff -Nur Python-2.4.orig/Lib/site.py Python-2.4/Lib/site.py --- Python-2.4.orig/Lib/site.py 2004-12-23 09:49:49.807801000 +0000 +++ Python-2.4/Lib/site.py 2004-12-23 09:52:09.563555808 +0000 @@ -179,10 +179,10 @@ sitedirs = [os.path.join(prefix, "Lib", "site-packages")] elif os.sep == '/': sitedirs = [os.path.join(prefix, - "lib", + "lib64", "python" + sys.version[:3], "site-packages"), - os.path.join(prefix, "lib", "site-python"), + os.path.join(prefix, "lib64", "site-python"), os.path.join(prefix, "share", "python" + sys.version[:3], @@ -190,7 +190,7 @@ os.path.join(prefix, "share", "site-python")] else: - sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")] + sitedirs = [prefix, os.path.join(prefix, "lib64", "site-packages")] if sys.platform == 'darwin': # for framework builds *only* we add the standard Apple # locations. Currently only per-user, but /Library and diff -Nur Python-2.4.orig/Makefile.pre.in Python-2.4/Makefile.pre.in --- Python-2.4.orig/Makefile.pre.in 2004-12-23 09:49:49.806802000 +0000 +++ Python-2.4/Makefile.pre.in 2004-12-23 09:50:42.789747432 +0000 @@ -79,7 +79,7 @@ # Expanded directories BINDIR= $(exec_prefix)/bin -LIBDIR= $(exec_prefix)/lib +LIBDIR= $(exec_prefix)/lib64 MANDIR= @mandir@ INCLUDEDIR= @includedir@ CONFINCLUDEDIR= $(exec_prefix)/include diff -Nur Python-2.4.orig/Modules/getpath.c Python-2.4/Modules/getpath.c --- Python-2.4.orig/Modules/getpath.c 2004-12-23 09:49:49.807801000 +0000 +++ Python-2.4/Modules/getpath.c 2004-12-23 09:50:42.790747280 +0000 @@ -113,7 +113,7 @@ #ifndef PYTHONPATH #define PYTHONPATH PREFIX "/share/python" VERSION ":" \ - EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" + EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload" #endif #ifndef LANDMARK @@ -124,7 +124,7 @@ static char exec_prefix[MAXPATHLEN+1]; static char progpath[MAXPATHLEN+1]; static char *module_search_path = NULL; -static char lib_python[] = "lib/python" VERSION; +static char lib_python[] = "lib64/python" VERSION; static char share_python[] = "share/python" VERSION; static void @@ -516,7 +516,7 @@ } else strncpy(zip_path, PREFIX, MAXPATHLEN); - joinpath(zip_path, "lib/python00.zip"); + joinpath(zip_path, "lib64/python00.zip"); bufsz = strlen(zip_path); /* Replace "00" with version */ zip_path[bufsz - 6] = VERSION[0]; zip_path[bufsz - 5] = VERSION[2]; diff -Nur Python-2.4.orig/setup.py Python-2.4/setup.py --- Python-2.4.orig/setup.py 2004-12-23 09:49:49.798803000 +0000 +++ Python-2.4/setup.py 2004-12-23 09:56:00.934382096 +0000 @@ -239,7 +239,7 @@ def detect_modules(self): # Ensure that /usr/local is always used - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') + add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib64') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') # Add paths to popular package managers on OS X/darwin