Fix setup.py compatibility with Pypy. Closes GH-394.

This commit is contained in:
Valentin Lorentz 2012-09-05 17:05:46 +02:00
parent f5fec4a969
commit 9c5f1ea6eb

View File

@ -70,8 +70,9 @@ try:
os.unlink(os.path.join('src', 'version.py'))
except OSError: # Does not exist
pass
open(os.path.join('src', 'version.py'), 'a').write(
"version = '0.83.4.1+limnoria %s'\n" % version)
fd = open(os.path.join('src', 'version.py'), 'a')
fd.write("version = '0.83.4.1+limnoria %s'\n" % version)
fd.close()
def normalizeWhitespace(s):
return ' '.join(s.split())