mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
The signal module has to be compiled statically, so add it to Setup.dist
and remove support for it from setup.py
This commit is contained in:
parent
65e1cea6e3
commit
6425efe9ae
2 changed files with 3 additions and 9 deletions
9
setup.py
9
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']) )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue