Merged revisions 73341 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73341 | tarek.ziade | 2009-06-11 10:12:20 +0200 (Thu, 11 Jun 2009) | 1 line

  Fixed #5201: now distutils.sysconfig.parse_makefile() understands '53264' in Makefiles
........
This commit is contained in:
Tarek Ziadé 2009-06-11 08:31:17 +00:00
parent 015c8103b1
commit abcc3f4357
3 changed files with 49 additions and 5 deletions

View file

@ -286,12 +286,19 @@ def parse_makefile(fn, g=None):
if m:
n, v = m.group(1, 2)
v = v.strip()
if "$" in v:
# `$$' is a literal `$' in make
tmpv = v.replace('$$', '')
if "$" in tmpv:
notdone[n] = v
else:
try: v = int(v)
except ValueError: pass
done[n] = v
try:
v = int(v)
except ValueError:
# insert literal `$'
done[n] = v.replace('$$', '$')
else:
done[n] = v
# do variable interpolation here
while notdone: