summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-01-17 15:59:25 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-01-17 15:59:25 (GMT)
commitd5c43065d5aa7bd8b9ec67525bd01d2c09a7759f (patch)
treefb641c8ea3422e064cd3a03a79bab23b37ece89e /setup.py
parentf98eda01ab3bfe92dfbdaf0765c9ee3a9a03a9c4 (diff)
downloadcpython-d5c43065d5aa7bd8b9ec67525bd01d2c09a7759f.zip
cpython-d5c43065d5aa7bd8b9ec67525bd01d2c09a7759f.tar.gz
cpython-d5c43065d5aa7bd8b9ec67525bd01d2c09a7759f.tar.bz2
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)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py22
1 files changed, 7 insertions, 15 deletions
diff --git a/setup.py b/setup.py
index 1ef5c59..a3a7c09 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ class PyBuildExt(build_ext):
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 @@ class PyBuildExt(build_ext):
# 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 @@ class PyBuildExt(build_ext):
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 @@ class PyBuildExt(build_ext):
# 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 @@ class PyBuildExt(build_ext):
# 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: