use tools/getversioninfo to extract the version number from the Python

sources
This commit is contained in:
Fred Drake 2004-05-11 14:37:55 +00:00
parent 6d340c3de8
commit 112f8f4f81
1 changed files with 4 additions and 11 deletions

View File

@ -25,17 +25,10 @@ PKG_TYPES = [
("LaTeX", "latex"),
]
fp = open("Makefile")
for line in fp:
line = line.replace('=', ' ', 1)
parts = line.split()
if parts[:1] == ["RELEASE"]:
release = parts[1]
break
else:
print >>sys.stderr, "Could not locate RELEASE in Makefile."
sys.exit(1)
getversioninfo = os.path.join(os.path.dirname(__file__), "getversioninfo")
fp = os.popen('"%s" "%s"' % (sys.executable, getversioninfo), "r")
release = fp.readline().strip()
fp.close()
print '''\
<table border="1" cellpadding="3" align="center">