1 --- python.old/setup.py 2003-11-01 19:23:48.495647848 +0000
2 +++ python/setup.py 2003-11-01 19:24:16.044459792 +0000
4 from distutils.command.install_lib import install_lib
6 # This global variable is used to hold the list of modules to be disabled.
7 -disabled_module_list = []
9 + disabled_module_list = os.environ["PYTHON_DISABLE_MODULES"].split()
11 + disabled_module_list = []
13 + disable_ssl = os.environ["PYTHON_DISABLE_SSL"]
17 def add_dir_to_list(dirlist, dir):
18 """Add the directory 'dir' to the list 'dirlist' (at the front) if
22 def detect_modules(self):
24 # Ensure that /usr/local is always used
25 add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
26 add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
30 if (ssl_incs is not None and
31 - ssl_libs is not None):
32 + ssl_libs is not None and
34 exts.append( Extension('_ssl', ['_ssl.c'],
35 include_dirs = ssl_incs,
36 library_dirs = ssl_libs,