We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2258f23 + aba0859 commit 04e9854Copy full SHA for 04e9854
setup.py
@@ -15,7 +15,9 @@
15
import sys
16
import warnings
17
18
-from setuptools import Extension, setup
+from setuptools import Extension
19
+from setuptools import __version__ as setuptools_version
20
+from setuptools import setup
21
from setuptools.command.build_ext import build_ext
22
23
@@ -850,6 +852,7 @@ def build_extensions(self):
850
852
sys.platform == "win32"
851
853
and sys.version_info < (3, 9)
854
and not (PLATFORM_PYPY or PLATFORM_MINGW)
855
+ and int(setuptools_version.split(".")[0]) < 60
856
):
857
defs.append(("PILLOW_VERSION", f'"\\"{PILLOW_VERSION}\\""'))
858
else:
0 commit comments