mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Fix version specification on pypy/windows
This commit is contained in:
parent
f28b18892a
commit
3f3eb99ff9
2
setup.py
2
setup.py
|
@ -599,7 +599,7 @@ class pil_build_ext(build_ext):
|
|||
if struct.unpack("h", "\0\1".encode('ascii'))[0] == 1:
|
||||
defs.append(("WORDS_BIGENDIAN", None))
|
||||
|
||||
if sys.platform == "win32":
|
||||
if sys.platform == "win32" and not hasattr(sys, 'pypy_version_info'):
|
||||
defs.append(("PILLOW_VERSION", '"\\"%s\\""'%PILLOW_VERSION))
|
||||
else:
|
||||
defs.append(("PILLOW_VERSION", '"%s"'%PILLOW_VERSION))
|
||||
|
|
Loading…
Reference in New Issue
Block a user