]> granicus.if.org Git - python/commitdiff
The signal module has to be compiled statically, so add it to Setup.dist
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 17 Jan 2001 22:17:16 +0000 (22:17 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 17 Jan 2001 22:17:16 +0000 (22:17 +0000)
    and remove support for it from setup.py

Modules/Setup.dist
setup.py

index ad471ce9265bc8a954d788350913cd6aaf87b9a4..3964107c42f3e5c7a95a1f6eecc9636dd5b0d92c 100644 (file)
@@ -93,5 +93,8 @@ PYTHONPATH=$(COREPYTHONPATH)
 posix posixmodule.c            # posix (UNIX) system calls
 _sre _sre.c                    # Fredrik Lundh's new regular expressions
 
+# The signal module can't be compiled as a dynamically linked module.
+signal signalmodule.c           # signal(2)
+
 # The rest of the modules previously listed in this file are built
 # by the setup.py script in Python 2.1.
index 19c8e0f89600ddacdc4035cf21485f9e19eaaf4b..9f715924286ffbec98896caeef757941b421d3f2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -53,14 +53,6 @@ class PyBuildExt(build_ext):
             ext.include_dirs.append( '.' ) # to get config.h
             ext.include_dirs.append( os.path.join(srcdir, './Include') )
             
-        # If the signal module is being compiled, remove the sigcheck.o and
-        # intrcheck.o object files from the archive.
-        if module_enabled(self.extensions, 'signal'):
-            print 'removing sigcheck.o intrcheck.o'
-            ar, library = sysconfig.get_config_vars('AR', 'LIBRARY')
-            cmd = '%s d Modules/%s sigcheck.o intrcheck.o' % (ar, library)
-            os.system(cmd)
-            
         build_ext.build_extensions(self)
 
     def detect_modules(self):
@@ -81,7 +73,6 @@ class PyBuildExt(build_ext):
         # Some modules that are normally always on:
         exts.append( Extension('regex', ['regexmodule.c', 'regexpr.c']) )
         exts.append( Extension('pcre', ['pcremodule.c', 'pypcre.c']) )
-        exts.append( Extension('signal', ['signalmodule.c']) )
         
         exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) )