mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix setup.py compatibility with Pypy. Closes GH-394.
This commit is contained in:
parent
f5fec4a969
commit
9c5f1ea6eb
5
setup.py
5
setup.py
@ -70,8 +70,9 @@ try:
|
|||||||
os.unlink(os.path.join('src', 'version.py'))
|
os.unlink(os.path.join('src', 'version.py'))
|
||||||
except OSError: # Does not exist
|
except OSError: # Does not exist
|
||||||
pass
|
pass
|
||||||
open(os.path.join('src', 'version.py'), 'a').write(
|
fd = open(os.path.join('src', 'version.py'), 'a')
|
||||||
"version = '0.83.4.1+limnoria %s'\n" % version)
|
fd.write("version = '0.83.4.1+limnoria %s'\n" % version)
|
||||||
|
fd.close()
|
||||||
|
|
||||||
def normalizeWhitespace(s):
|
def normalizeWhitespace(s):
|
||||||
return ' '.join(s.split())
|
return ' '.join(s.split())
|
||||||
|
Loading…
Reference in New Issue
Block a user