Kaydet (Commit) d5c43065 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

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)
üst f98eda01
...@@ -59,7 +59,7 @@ class PyBuildExt(build_ext): ...@@ -59,7 +59,7 @@ class PyBuildExt(build_ext):
print 'removing sigcheck.o intrcheck.o' print 'removing sigcheck.o intrcheck.o'
ar, library = sysconfig.get_config_vars('AR', 'LIBRARY') ar, library = sysconfig.get_config_vars('AR', 'LIBRARY')
cmd = '%s d Modules/%s sigcheck.o intrcheck.o' % (ar, library) cmd = '%s d Modules/%s sigcheck.o intrcheck.o' % (ar, library)
# os.system(cmd) os.system(cmd)
build_ext.build_extensions(self) build_ext.build_extensions(self)
...@@ -68,7 +68,6 @@ class PyBuildExt(build_ext): ...@@ -68,7 +68,6 @@ class PyBuildExt(build_ext):
# a fixed list # a fixed list
lib_dirs = self.compiler.library_dirs[:] lib_dirs = self.compiler.library_dirs[:]
lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib']
# std_lib_dirs = ['/lib', '/usr/lib']
exts = [] exts = []
# XXX Omitted modules: gl, pure, dl, SGI-specific modules # XXX Omitted modules: gl, pure, dl, SGI-specific modules
...@@ -83,8 +82,7 @@ class PyBuildExt(build_ext): ...@@ -83,8 +82,7 @@ class PyBuildExt(build_ext):
exts.append( Extension('pcre', ['pcremodule.c', 'pypcre.c']) ) exts.append( Extension('pcre', ['pcremodule.c', 'pypcre.c']) )
exts.append( Extension('signal', ['signalmodule.c']) ) exts.append( Extension('signal', ['signalmodule.c']) )
# XXX uncomment this with 2.0CVS exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) )
#exts.append( Extension('xreadlines', ['xreadlines.c']) )
# array objects # array objects
exts.append( Extension('array', ['arraymodule.c']) ) exts.append( Extension('array', ['arraymodule.c']) )
...@@ -366,16 +364,11 @@ class PyBuildExt(build_ext): ...@@ -366,16 +364,11 @@ class PyBuildExt(build_ext):
# done by the shell's "read" command and it may not be implemented on # done by the shell's "read" command and it may not be implemented on
# every system. # every system.
# XXX need to add the old 7.x/4.x unsynced version numbers here for version in ['8.4', '8.3', '8.2', '8.1', '8.0']:
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')]:
tklib = self.compiler.find_library_file(lib_dirs, tklib = self.compiler.find_library_file(lib_dirs,
'tk' + tk_version ) 'tk' + version )
tcllib = self.compiler.find_library_file(lib_dirs, tcllib = self.compiler.find_library_file(lib_dirs,
'tcl' + tcl_version ) 'tcl' + version )
if tklib and tcllib: if tklib and tcllib:
# Exit the loop when we've found the Tcl/Tk libraries # Exit the loop when we've found the Tcl/Tk libraries
break break
...@@ -395,11 +388,10 @@ class PyBuildExt(build_ext): ...@@ -395,11 +388,10 @@ class PyBuildExt(build_ext):
# Check for the include files on Debian, where # Check for the include files on Debian, where
# they're put in /usr/include/{tcl,tk}X.Y # they're put in /usr/include/{tcl,tk}X.Y
# XXX currently untested
debian_tcl_include = ( prefix + os.sep + 'include/tcl' + debian_tcl_include = ( prefix + os.sep + 'include/tcl' +
tcl_version ) version )
debian_tk_include = ( prefix + os.sep + 'include/tk' + debian_tk_include = ( prefix + os.sep + 'include/tk' +
tk_version ) version )
if os.path.exists(debian_tcl_include): if os.path.exists(debian_tcl_include):
include_dirs = [debian_tcl_include, debian_tk_include] include_dirs = [debian_tcl_include, debian_tk_include]
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment