mirror of https://github.com/python/cpython.git
Various clean-ups:
* Uncomment the xreadlines module * The Tcl/Tk detection code doesn't need to worry about pre-8.0 versions * Fix some debugging changes (not running ar, a commented-out line)
This commit is contained in:
parent
f98eda01ab
commit
d5c43065d5
22
setup.py
22
setup.py
|
@ -59,7 +59,7 @@ def build_extensions(self):
|
|||
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)
|
||||
os.system(cmd)
|
||||
|
||||
build_ext.build_extensions(self)
|
||||
|
||||
|
@ -68,7 +68,6 @@ def detect_modules(self):
|
|||
# a fixed list
|
||||
lib_dirs = self.compiler.library_dirs[:]
|
||||
lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib']
|
||||
# std_lib_dirs = ['/lib', '/usr/lib']
|
||||
exts = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
|
@ -83,8 +82,7 @@ def detect_modules(self):
|
|||
exts.append( Extension('pcre', ['pcremodule.c', 'pypcre.c']) )
|
||||
exts.append( Extension('signal', ['signalmodule.c']) )
|
||||
|
||||
# XXX uncomment this with 2.0CVS
|
||||
#exts.append( Extension('xreadlines', ['xreadlines.c']) )
|
||||
exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) )
|
||||
|
||||
# array objects
|
||||
exts.append( Extension('array', ['arraymodule.c']) )
|
||||
|
@ -366,16 +364,11 @@ def detect_modules(self):
|
|||
# done by the shell's "read" command and it may not be implemented on
|
||||
# every system.
|
||||
|
||||
# XXX need to add the old 7.x/4.x unsynced version numbers here
|
||||
for tcl_version, tk_version in [('8.4', '8.4'),
|
||||
('8.3', '8.3'),
|
||||
('8.2', '8.2'),
|
||||
('8.1', '8.1'),
|
||||
('8.0', '8.0')]:
|
||||
for version in ['8.4', '8.3', '8.2', '8.1', '8.0']:
|
||||
tklib = self.compiler.find_library_file(lib_dirs,
|
||||
'tk' + tk_version )
|
||||
'tk' + version )
|
||||
tcllib = self.compiler.find_library_file(lib_dirs,
|
||||
'tcl' + tcl_version )
|
||||
'tcl' + version )
|
||||
if tklib and tcllib:
|
||||
# Exit the loop when we've found the Tcl/Tk libraries
|
||||
break
|
||||
|
@ -395,11 +388,10 @@ def detect_modules(self):
|
|||
|
||||
# Check for the include files on Debian, where
|
||||
# they're put in /usr/include/{tcl,tk}X.Y
|
||||
# XXX currently untested
|
||||
debian_tcl_include = ( prefix + os.sep + 'include/tcl' +
|
||||
tcl_version )
|
||||
version )
|
||||
debian_tk_include = ( prefix + os.sep + 'include/tk' +
|
||||
tk_version )
|
||||
version )
|
||||
if os.path.exists(debian_tcl_include):
|
||||
include_dirs = [debian_tcl_include, debian_tk_include]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue