| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | $NetBSD: patch-am,v 1.2 2009/04/11 19:42:23 snj Exp $ | | 1 | $NetBSD: patch-am,v 1.3 2009/07/24 14:50:33 schmonz Exp $ |
2 | | | 2 | |
3 | --- setup.py.orig 2008-10-16 11:58:19.000000000 -0700 | | 3 | --- setup.py.orig 2008-10-16 14:58:19.000000000 -0400 |
4 | +++ setup.py 2009-03-20 15:01:44.000000000 -0700 | | 4 | +++ setup.py |
5 | @@ -15,7 +15,7 @@ from distutils.command.install import in | | 5 | @@ -15,7 +15,7 @@ from distutils.command.install import in |
6 | from distutils.command.install_lib import install_lib | | 6 | from distutils.command.install_lib import install_lib |
7 | | | 7 | |
8 | # This global variable is used to hold the list of modules to be disabled. | | 8 | # This global variable is used to hold the list of modules to be disabled. |
9 | -disabled_module_list = [] | | 9 | -disabled_module_list = [] |
10 | +disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite", "_tkinter", "bsddb", "cjkcodecs" "gdbm", "mpz", "expat", "readline"] | | 10 | +disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite", "_tkinter", "bsddb", "cjkcodecs" "gdbm", "mpz", "expat", "readline"] |
11 | | | 11 | |
12 | def add_dir_to_list(dirlist, dir): | | 12 | def add_dir_to_list(dirlist, dir): |
13 | """Add the directory 'dir' to the list 'dirlist' (at the front) if | | 13 | """Add the directory 'dir' to the list 'dirlist' (at the front) if |
14 | @@ -243,9 +243,15 @@ class PyBuildExt(build_ext): | | 14 | @@ -243,9 +243,15 @@ class PyBuildExt(build_ext): |
15 | return sys.platform | | 15 | return sys.platform |
16 | | | 16 | |
17 | def detect_modules(self): | | 17 | def detect_modules(self): |
| @@ -354,24 +354,37 @@ $NetBSD: patch-am,v 1.2 2009/04/11 19:42 | | | @@ -354,24 +354,37 @@ $NetBSD: patch-am,v 1.2 2009/04/11 19:42 |
354 | exts.append( Extension('dbm', ['dbmmodule.c'], | | 354 | exts.append( Extension('dbm', ['dbmmodule.c'], |
355 | define_macros=[('HAVE_NDBM_H',None)], | | 355 | define_macros=[('HAVE_NDBM_H',None)], |
356 | libraries = ndbm_libs ) ) | | 356 | libraries = ndbm_libs ) ) |
357 | + elif find_file("ndbm.h", db_incs, []) is not None: | | 357 | + elif find_file("ndbm.h", db_incs, []) is not None: |
358 | + exts.append( Extension('dbm', ['dbmmodule.c'], | | 358 | + exts.append( Extension('dbm', ['dbmmodule.c'], |
359 | + library_dirs=dblib_dir, | | 359 | + library_dirs=dblib_dir, |
360 | + runtime_library_dirs=dblib_dir, | | 360 | + runtime_library_dirs=dblib_dir, |
361 | + include_dirs=db_incs, | | 361 | + include_dirs=db_incs, |
362 | + define_macros=[('HAVE_NDBM_H',None)], | | 362 | + define_macros=[('HAVE_NDBM_H',None)], |
363 | + libraries=dblibs)) | | 363 | + libraries=dblibs)) |
364 | elif (self.compiler.find_library_file(lib_dirs, 'gdbm') | | 364 | elif (self.compiler.find_library_file(lib_dirs, 'gdbm') |
365 | and find_file("gdbm/ndbm.h", inc_dirs, []) is not None): | | 365 | and find_file("gdbm/ndbm.h", inc_dirs, []) is not None): |
366 | exts.append( Extension('dbm', ['dbmmodule.c'], | | 366 | exts.append( Extension('dbm', ['dbmmodule.c'], |
| | | 367 | @@ -899,9 +692,9 @@ class PyBuildExt(build_ext): |
| | | 368 | libraries=dblibs)) |
| | | 369 | |
| | | 370 | # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm: |
| | | 371 | - if (self.compiler.find_library_file(lib_dirs, 'gdbm')): |
| | | 372 | - exts.append( Extension('gdbm', ['gdbmmodule.c'], |
| | | 373 | - libraries = ['gdbm'] ) ) |
| | | 374 | + #if (self.compiler.find_library_file(lib_dirs, 'gdbm')): |
| | | 375 | + # exts.append( Extension('gdbm', ['gdbmmodule.c'], |
| | | 376 | + # libraries = ['gdbm'] ) ) |
| | | 377 | |
| | | 378 | # Unix-only modules |
| | | 379 | if platform not in ['mac', 'win32']: |
367 | @@ -1536,8 +1329,8 @@ def main(): | | 380 | @@ -1536,8 +1329,8 @@ def main(): |
368 | ext_modules=[Extension('_struct', ['_struct.c'])], | | 381 | ext_modules=[Extension('_struct', ['_struct.c'])], |
369 | | | 382 | |
370 | # Scripts to install | | 383 | # Scripts to install |
371 | - scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle', | | 384 | - scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle', |
372 | - 'Lib/smtpd.py'] | | 385 | - 'Lib/smtpd.py'] |
373 | + scripts = ['Tools/scripts/pydoc2.5', | | 386 | + scripts = ['Tools/scripts/pydoc2.5', |
374 | + 'Lib/smtpd2.5.py'] | | 387 | + 'Lib/smtpd2.5.py'] |
375 | ) | | 388 | ) |
376 | | | 389 | |
377 | # --install-platlib | | 390 | # --install-platlib |