Bug #999767: make setup.py obey Setup.local wrt shared modules

This commit is contained in:
Georg Brandl 2005-12-27 18:24:27 +00:00
parent cd4d1e8b46
commit e08fa29d0e

View file

@ -148,10 +148,11 @@ class PyBuildExt(build_ext):
self.extensions.remove(ext) self.extensions.remove(ext)
if platform != 'mac': if platform != 'mac':
# Parse Modules/Setup to figure out which modules are turned # Parse Modules/Setup and Modules/Setup.local to figure out which
# on in the file. # modules are turned on in the file.
input = text_file.TextFile('Modules/Setup', join_lines=1)
remove_modules = [] remove_modules = []
for filename in ('Modules/Setup', 'Modules/Setup.local'):
input = text_file.TextFile(filename, join_lines=1)
while 1: while 1:
line = input.readline() line = input.readline()
if not line: break if not line: break