summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-06 14:38:30 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-06 14:38:30 (GMT)
commit4a114313a89e8b7a9c74ee09729cfbb72053f6b4 (patch)
tree140b1902dceba1efbdd14fff4bde9e3c68481e58 /Tools/freeze
parente10053b881966ca9055ec313aea7b30d54ca3932 (diff)
downloadcpython-4a114313a89e8b7a9c74ee09729cfbb72053f6b4.zip
cpython-4a114313a89e8b7a9c74ee09729cfbb72053f6b4.tar.gz
cpython-4a114313a89e8b7a9c74ee09729cfbb72053f6b4.tar.bz2
After variable expansion, what was formerly a single word can now
contain multiple words, all of which may have to be joined with the path of the extension directory. (Sjoerd)
Diffstat (limited to 'Tools/freeze')
-rw-r--r--Tools/freeze/checkextensions.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/Tools/freeze/checkextensions.py b/Tools/freeze/checkextensions.py
index 68f7ff8..4ed2a7c 100644
--- a/Tools/freeze/checkextensions.py
+++ b/Tools/freeze/checkextensions.py
@@ -44,13 +44,14 @@ def select(e, mods, vars, mod, skipofiles):
if not w:
continue
w = expandvars(w, vars)
- if skipofiles and w[-2:] == '.o':
- continue
- if w[0] != '-' and w[-2:] in ('.o', '.a'):
- w = os.path.join(e, w)
- if w[:2] in ('-L', '-R'):
- w = w[:2] + os.path.join(e, w[2:])
- files.append(w)
+ for w in string.split(w):
+ if skipofiles and w[-2:] == '.o':
+ continue
+ if w[0] != '-' and w[-2:] in ('.o', '.a'):
+ w = os.path.join(e, w)
+ if w[:2] in ('-L', '-R'):
+ w = w[:2] + os.path.join(e, w[2:])
+ files.append(w)
return files
cc_flags = ['-I', '-D', '-U']