source:
scripts_home/scripts/untested/blfs-patches/Python-2.4-lib64-1.patch@
1c9c5c3
Last change on this file since 1c9c5c3 was 1c9c5c3, checked in by , 19 years ago | |
---|---|
|
|
File size: 10.2 KB |
-
Lib/distutils/command/install.py
diff -uNr Python-2.4-orig/Lib/distutils/command/install.py Python-2.4/Lib/distutils/command/install.py
old new 39 39 INSTALL_SCHEMES = { 40 40 'unix_prefix': { 41 41 'purelib': '$base/lib/python$py_version_short/site-packages', 42 'platlib': '$platbase/lib /python$py_version_short/site-packages',42 'platlib': '$platbase/lib64/python$py_version_short/site-packages', 43 43 'headers': '$base/include/python$py_version_short/$dist_name', 44 44 'scripts': '$base/bin', 45 45 'data' : '$base', 46 46 }, 47 47 'unix_home': { 48 48 'purelib': '$base/lib/python', 49 'platlib': '$base/lib /python',49 'platlib': '$base/lib64/python', 50 50 'headers': '$base/include/python/$dist_name', 51 51 'scripts': '$base/bin', 52 52 'data' : '$base', -
Lib/distutils/sysconfig.py
diff -uNr Python-2.4-orig/Lib/distutils/sysconfig.py Python-2.4/Lib/distutils/sysconfig.py
old new 99 99 prefix = plat_specific and EXEC_PREFIX or PREFIX 100 100 101 101 if os.name == "posix": 102 if plat_specific or standard_lib: 103 lib = "lib64" 104 else: 105 lib = "lib" 102 106 libpython = os.path.join(prefix, 103 "lib ", "python" + get_python_version())107 "lib64", "python" + get_python_version()) 104 108 if standard_lib: 105 109 return libpython 106 110 else: -
Lib/site.py
diff -uNr Python-2.4-orig/Lib/site.py Python-2.4/Lib/site.py
old new 179 179 sitedirs = [os.path.join(prefix, "Lib", "site-packages")] 180 180 elif os.sep == '/': 181 181 sitedirs = [os.path.join(prefix, 182 "lib64", 183 "python" + sys.version[:3], 184 "site-packages"), 185 os.path.join(prefix, 182 186 "lib", 183 187 "python" + sys.version[:3], 184 188 "site-packages"), 189 os.path.join(prefix, "lib64", "site-python"), 185 190 os.path.join(prefix, "lib", "site-python")] 186 191 else: 187 192 sitedirs = [prefix, os.path.join(prefix, "lib", "site-packages")] -
Makefile.pre.in
diff -uNr Python-2.4-orig/Makefile.pre.in Python-2.4/Makefile.pre.in
old new 79 79 80 80 # Expanded directories 81 81 BINDIR= $(exec_prefix)/bin 82 LIBDIR= $(exec_prefix)/lib 82 LIBDIR= $(exec_prefix)/lib64 83 83 MANDIR= @mandir@ 84 84 INCLUDEDIR= @includedir@ 85 85 CONFINCLUDEDIR= $(exec_prefix)/include 86 SCRIPTDIR= $(prefix)/lib 86 SCRIPTDIR= $(prefix)/lib64 87 87 88 88 # Detailed destination directories 89 89 BINLIBDEST= $(LIBDIR)/python$(VERSION) -
Modules/Setup.dist
diff -uNr Python-2.4-orig/Modules/Setup.dist Python-2.4/Modules/Setup.dist
old new 325 325 # *** Uncomment and edit to reflect your Tcl/Tk versions: 326 326 # -ltk8.2 -ltcl8.2 \ 327 327 # *** Uncomment and edit to reflect where your X11 libraries are: 328 # -L/usr/X11R6/lib\328 -L/usr/X11R6/lib64 \ 329 329 # *** Or uncomment this for Solaris: 330 330 # -L/usr/openwin/lib \ 331 331 # *** Uncomment these for TOGL extension only: … … 396 396 #DB=/usr/local/BerkeleyDB.4.0 397 397 #DBLIBVER=4.0 398 398 #DBINC=$(DB)/include 399 #DBLIB=$(DB)/lib 399 DBLIB=$(DB)/lib64 400 400 #_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER) 401 401 402 402 # Historical Berkeley DB 1.85 … … 442 442 # Andrew Kuchling's zlib module. 443 443 # This require zlib 1.1.3 (or later). 444 444 # See http://www.gzip.org/zlib/ 445 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib-lz445 zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib64 -lz 446 446 447 447 # Interface to the Expat XML parser 448 448 # -
Modules/getpath.c
diff -uNr Python-2.4-orig/Modules/getpath.c Python-2.4/Modules/getpath.c
old new 112 112 #endif 113 113 114 114 #ifndef PYTHONPATH 115 #define PYTHONPATH PREFIX "/lib /python" VERSION ":" \116 EXEC_PREFIX "/lib /python" VERSION "/lib-dynload"115 #define PYTHONPATH PREFIX "/lib64/python" VERSION ":" \ 116 EXEC_PREFIX "/lib64/python" VERSION "/lib-dynload" 117 117 #endif 118 118 119 119 #ifndef LANDMARK … … 124 124 static char exec_prefix[MAXPATHLEN+1]; 125 125 static char progpath[MAXPATHLEN+1]; 126 126 static char *module_search_path = NULL; 127 static char lib_python[] = "lib /python" VERSION;127 static char lib_python[] = "lib64/python" VERSION; 128 128 129 129 static void 130 130 reduce(char *dir) … … 515 515 } 516 516 else 517 517 strncpy(zip_path, PREFIX, MAXPATHLEN); 518 joinpath(zip_path, "lib /python00.zip");518 joinpath(zip_path, "lib64/python00.zip"); 519 519 bufsz = strlen(zip_path); /* Replace "00" with version */ 520 520 zip_path[bufsz - 6] = VERSION[0]; 521 521 zip_path[bufsz - 5] = VERSION[2]; … … 525 525 fprintf(stderr, 526 526 "Could not find platform dependent libraries <exec_prefix>\n"); 527 527 strncpy(exec_prefix, EXEC_PREFIX, MAXPATHLEN); 528 joinpath(exec_prefix, "lib /lib-dynload");528 joinpath(exec_prefix, "lib64/lib-dynload"); 529 529 } 530 530 /* If we found EXEC_PREFIX do *not* reduce it! (Yet.) */ 531 531 -
setup.py
diff -uNr Python-2.4-orig/setup.py Python-2.4/setup.py
old new 239 239 240 240 def detect_modules(self): 241 241 # Ensure that /usr/local is always used 242 add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib ')242 add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib64') 243 243 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') 244 244 245 245 # Add paths to popular package managers on OS X/darwin … … 429 429 elif self.compiler.find_library_file(lib_dirs, 'curses'): 430 430 readline_libs.append('curses') 431 431 elif self.compiler.find_library_file(lib_dirs + 432 ['/usr/lib /termcap'],432 ['/usr/lib64/termcap'], 433 433 'termcap'): 434 434 readline_libs.append('termcap') 435 435 exts.append( Extension('readline', ['readline.c'], 436 library_dirs=['/usr/lib /termcap'],436 library_dirs=['/usr/lib64/termcap'], 437 437 libraries=readline_libs) ) 438 438 if platform not in ['mac']: 439 439 # crypt module. … … 462 462 if krb5_h: 463 463 ssl_incs += krb5_h 464 464 ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, 465 ['/usr/local/ssl/lib ',466 '/usr/contrib/ssl/lib /'465 ['/usr/local/ssl/lib64', 466 '/usr/contrib/ssl/lib64/' 467 467 ] ) 468 468 469 469 if (ssl_incs is not None and … … 493 493 # order you wish to search - e.g., search for db4 before db3 494 494 db_try_this = { 495 495 'db4': {'libs': ('db-4.3', 'db43', 'db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',), 496 'libdirs': ('/usr/local/BerkeleyDB.4.3/lib ',497 '/usr/local/BerkeleyDB.4.2/lib ',498 '/usr/local/BerkeleyDB.4.1/lib ',499 '/usr/local/BerkeleyDB.4.0/lib ',500 '/usr/local/lib ',496 'libdirs': ('/usr/local/BerkeleyDB.4.3/lib64', 497 '/usr/local/BerkeleyDB.4.2/lib64', 498 '/usr/local/BerkeleyDB.4.1/lib64', 499 '/usr/local/BerkeleyDB.4.0/lib64', 500 '/usr/local/lib64', 501 501 '/opt/sfw', 502 '/sw/lib ',502 '/sw/lib64', 503 503 ), 504 504 'incdirs': ('/usr/local/BerkeleyDB.4.3/include', 505 505 '/usr/local/include/db43', … … 514 514 '/usr/include/db4', 515 515 )}, 516 516 'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',), 517 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib ',518 '/usr/local/BerkeleyDB.3.2/lib ',519 '/usr/local/lib ',520 '/opt/sfw/lib ',521 '/sw/lib ',517 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib64', 518 '/usr/local/BerkeleyDB.3.2/lib64', 519 '/usr/local/lib64', 520 '/opt/sfw/lib64', 521 '/sw/lib64', 522 522 ), 523 523 'incdirs': ('/usr/local/BerkeleyDB.3.3/include', 524 524 '/usr/local/BerkeleyDB.3.2/include', … … 1000 1000 added_lib_dirs.append('/usr/X11R6/lib') 1001 1001 elif os.path.exists('/usr/X11R5/include'): 1002 1002 include_dirs.append('/usr/X11R5/include') 1003 added_lib_dirs.append('/usr/X11R5/lib ')1003 added_lib_dirs.append('/usr/X11R5/lib64') 1004 1004 else: 1005 1005 # Assume default location for X11 1006 1006 include_dirs.append('/usr/X11/include') 1007 added_lib_dirs.append('/usr/X11/lib ')1007 added_lib_dirs.append('/usr/X11/lib64') 1008 1008 1009 1009 # If Cygwin, then verify that X is installed before proceeding 1010 1010 if platform == 'cygwin':
Note:
See TracBrowser
for help on using the repository browser.