--- Python-2.2.2/Lib/distutils/command/install.py.lib64 Mon Mar 25 08:15:28 2002 +++ Python-2.2.2/Lib/distutils/command/install.py Tue Nov 12 08:36:29 2002 @@ -35,15 +35,15 @@ INSTALL_SCHEMES = { 'unix_prefix': { 'purelib': '$base/lib/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/lib/python', - 'platlib': '$base/lib/python', + 'platlib': '$base/lib64/python', 'headers': '$base/include/python/$dist_name', 'scripts': '$base/bin', 'data' : '$base', --- Python-2.2.2/Lib/distutils/sysconfig.py.lib64 Tue Oct 8 10:59:43 2002 +++ Python-2.2.2/Lib/distutils/sysconfig.py Tue Nov 12 08:36:29 2002 @@ -97,7 +97,7 @@ if os.name == "posix": libpython = os.path.join(prefix, - "lib", "python" + sys.version[:3]) + "lib64", "python" + sys.version[:3]) if standard_lib: return libpython else: --- Python-2.2.2/Lib/site.py.lib64 Sat Oct 5 23:52:44 2002 +++ Python-2.2.2/Lib/site.py Fri Jan 31 19:42:27 2003 @@ -167,12 +167,16 @@ if prefix: if os.sep == '/': sitedirs = [os.path.join(prefix, + "lib64", + "python" + sys.version[:3], + "site-packages"), + os.path.join(prefix, "lib", "python" + sys.version[:3], "site-packages"), - os.path.join(prefix, "lib", "site-python")] + os.path.join(prefix, "lib64", "site-python")] else: - sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")] + sitedirs = [prefix, os.path.join(prefix, "lib64", "site-packages")] for sitedir in sitedirs: if os.path.isdir(sitedir): addsitedir(sitedir) --- Python-2.2.2/Modules/getpath.c.lib64 Fri Sep 13 10:40:50 2002 +++ Python-2.2.2/Modules/getpath.c Tue Nov 12 08:36:29 2002 @@ -108,8 +108,8 @@ #endif #ifndef PYTHONPATH -#define PYTHONPATH PREFIX "/lib/python" VERSION ":" \ - EXEC_PREFIX "/lib/python" VERSION "/lib-dynload" +#define PYTHONPATH PREFIX "/lib64/python" VERSION ":" \ + EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload" #endif #ifndef LANDMARK @@ -120,7 +120,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 void reduce(char *dir) @@ -484,7 +484,7 @@ fprintf(stderr, "Could not find platform dependent libraries \n"); strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); - joinpath(exec_prefix, "lib/lib-dynload"); + joinpath(exec_prefix, "lib64/lib-dynload"); } /* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */ --- Python-2.2.2/Modules/Setup.dist.lib64 Tue Nov 12 08:37:32 2002 +++ Python-2.2.2/Modules/Setup.dist Tue Nov 12 08:38:45 2002 @@ -186,7 +186,7 @@ SSL=/usr/local/ssl _socket socketmodule.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ - -L$(SSL)/lib -lssl -lcrypto + -L$(SSL)/lib64 -lssl -lcrypto # The crypt module is now disabled by default because it breaks builds # on many systems (where -lcrypt is needed), e.g. Linux (I believe). @@ -326,7 +326,7 @@ # *** Uncomment and edit to reflect your Tcl/Tk versions: -ltk -ltcl \ # *** Uncomment and edit to reflect where your X11 libraries are: - -L/usr/X11R6/lib \ + -L/usr/X11R6/lib64 \ # *** Or uncomment this for Solaris: # -L/usr/openwin/lib \ # *** Uncomment these for TOGL extension only: @@ -403,7 +403,7 @@ #DB=/depot/sundry/src/berkeley-db/db.1.85 #DBPORT=$(DB)/PORT/irix.5.3 -bsddb bsddbmodule.c -I/usr/include/db4 -DHAVE_DB_185_H -L/lib -ldb-4.2 +bsddb bsddbmodule.c -I/usr/include/db4 -DHAVE_DB_185_H -L/lib64 -ldb-4.2 @@ -438,7 +438,7 @@ # Andrew Kuchling's zlib module. # This require zlib 1.1.3 (or later). # See http://www.cdrom.com/pub/infozip/zlib/ -zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz +zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib64 -lz # Interface to the Expat XML parser # --- Python-2.2.2/setup.py.lib64 Tue Nov 12 08:36:27 2002 +++ Python-2.2.2/setup.py Tue Nov 12 08:36:29 2002 @@ -198,8 +198,8 @@ def detect_modules(self): # Ensure that /usr/local is always used - if '/usr/local/lib' not in self.compiler.library_dirs: - self.compiler.library_dirs.insert(0, '/usr/local/lib') + if '/usr/local/lib64' not in self.compiler.library_dirs: + self.compiler.library_dirs.insert(0, '/usr/local/lib64') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.insert(0, '/usr/local/include' ) @@ -211,7 +211,7 @@ # lib_dirs and inc_dirs are used to search for files; # if a file is found in one of those directories, it can # be assumed that no additional -I,-L directives are needed. - lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib'] + lib_dirs = self.compiler.library_dirs + ['/lib64', '/usr/lib64'] inc_dirs = self.compiler.include_dirs + ['/usr/include'] exts = [] @@ -332,11 +332,11 @@ 'ncurses'): readline_libs.append('ncurses') elif self.compiler.find_library_file(lib_dirs + - ['/usr/lib/termcap'], + ['/usr/lib64/termcap'], 'termcap'): readline_libs.append('termcap') exts.append( Extension('readline', ['readline.c'], - library_dirs=['/usr/lib/termcap'], + library_dirs=['/usr/lib64/termcap'], libraries=readline_libs) ) # crypt module. @@ -355,8 +355,8 @@ ] ) ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, - ['/usr/local/ssl/lib', - '/usr/contrib/ssl/lib/' + ['/usr/local/ssl/lib64', + '/usr/contrib/ssl/lib64/' ] ) if (ssl_incs is not None and @@ -711,14 +711,14 @@ added_lib_dirs.append('/usr/openwin/lib') elif os.path.exists('/usr/X11R6/include'): include_dirs.append('/usr/X11R6/include') - added_lib_dirs.append('/usr/X11R6/lib') + added_lib_dirs.append('/usr/X11R6/lib64') elif os.path.exists('/usr/X11R5/include'): include_dirs.append('/usr/X11R5/include') - added_lib_dirs.append('/usr/X11R5/lib') + added_lib_dirs.append('/usr/X11R5/lib64') else: # Assume default location for X11 include_dirs.append('/usr/X11/include') - added_lib_dirs.append('/usr/X11/lib') + added_lib_dirs.append('/usr/X11/lib64') # If Cygwin, then verify that X is installed before proceeding if platform == 'cygwin':