8a776ca2c1
* not "_sqlite", but "_sqlite3", fixes PR#42070. * "bsddb" does not exists. (I can find it in Python21, not in Python23) * "cjkcodecs" should not be disabled. It is expected to exists in all Python variants and py-cjkcodecs was removed. Although, the module name is "_multibytecodec" and "_codecs_*". and missing "," after it kill subsecuent "gdbm". * "mpz" was removed in Python24.
70 lines
2.7 KiB
Text
70 lines
2.7 KiB
Text
$NetBSD: patch-am,v 1.6 2009/09/19 09:06:57 obache Exp $
|
|
|
|
--- setup.py.orig 2009-03-31 18:20:48.000000000 +0000
|
|
+++ setup.py
|
|
@@ -17,7 +17,7 @@ from distutils.command.install import in
|
|
from distutils.command.install_lib import install_lib
|
|
|
|
# This global variable is used to hold the list of modules to be disabled.
|
|
-disabled_module_list = []
|
|
+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite3", "_tkinter", "gdbm", "expat", "readline"]
|
|
|
|
def add_dir_to_list(dirlist, dir):
|
|
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
|
|
@@ -309,9 +309,15 @@ class PyBuildExt(build_ext):
|
|
return sys.platform
|
|
|
|
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.include_dirs, '/usr/local/include')
|
|
+ # Add the buildlink directories for pkgsrc
|
|
+ if os.environ.has_key('BUILDLINK_DIR'):
|
|
+ dir = os.environ['BUILDLINK_DIR']
|
|
+ libdir = dir + '/lib'
|
|
+ incdir = dir + '/include'
|
|
+ if libdir not in self.compiler.library_dirs:
|
|
+ self.compiler.library_dirs.insert(0, libdir)
|
|
+ if incdir not in self.compiler.include_dirs:
|
|
+ self.compiler.include_dirs.insert(0, incdir)
|
|
|
|
# Add paths specified in the environment variables LDFLAGS and
|
|
# CPPFLAGS for header and library files.
|
|
@@ -626,9 +632,7 @@ class PyBuildExt(build_ext):
|
|
if krb5_h:
|
|
ssl_incs += krb5_h
|
|
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
|
|
- ['/usr/local/ssl/lib',
|
|
- '/usr/contrib/ssl/lib/'
|
|
- ] )
|
|
+ [] )
|
|
|
|
if (ssl_incs is not None and
|
|
ssl_libs is not None):
|
|
@@ -1300,6 +1304,14 @@ class PyBuildExt(build_ext):
|
|
)
|
|
libraries = []
|
|
|
|
+ elif platform.startswith('dragonfly'):
|
|
+ macros = dict(
|
|
+ HAVE_SEM_OPEN=0,
|
|
+ HAVE_SEM_TIMEDWAIT=0,
|
|
+ HAVE_FD_TRANSFER=1,
|
|
+ )
|
|
+ libraries = []
|
|
+
|
|
else: # Linux and other unices
|
|
macros = dict(
|
|
HAVE_SEM_OPEN=1,
|
|
@@ -1891,9 +1903,9 @@ def main():
|
|
ext_modules=[Extension('_struct', ['_struct.c'])],
|
|
|
|
# Scripts to install
|
|
- scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle',
|
|
+ scripts = ['Tools/scripts/pydoc2.6',
|
|
'Tools/scripts/2to3',
|
|
- 'Lib/smtpd.py']
|
|
+ 'Lib/smtpd2.6.py']
|
|
)
|
|
|
|
# --install-platlib
|