Skip to content

Commit 04e9854

Browse files
authored
Merge pull request #6450 from radarhere/setuptools
Do not quote Pillow version for setuptools >= 60
2 parents 2258f23 + aba0859 commit 04e9854

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
import sys
1616
import warnings
1717

18-
from setuptools import Extension, setup
18+
from setuptools import Extension
19+
from setuptools import __version__ as setuptools_version
20+
from setuptools import setup
1921
from setuptools.command.build_ext import build_ext
2022

2123

@@ -850,6 +852,7 @@ def build_extensions(self):
850852
sys.platform == "win32"
851853
and sys.version_info < (3, 9)
852854
and not (PLATFORM_PYPY or PLATFORM_MINGW)
855+
and int(setuptools_version.split(".")[0]) < 60
853856
):
854857
defs.append(("PILLOW_VERSION", f'"\\"{PILLOW_VERSION}\\""'))
855858
else:

0 commit comments

Comments
 (0)