Skip to content

Commit

Permalink
Do not quote Pillow version for setuptools >= 60
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jul 18, 2022
1 parent 2258f23 commit 08db23c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -15,7 +15,9 @@
import sys
import warnings

from setuptools import Extension, setup
from setuptools import Extension
from setuptools import __version__ as setuptools_version
from setuptools import setup
from setuptools.command.build_ext import build_ext


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

0 comments on commit 08db23c

Please sign in to comment.