FIX: with python 3.13b1 this change is needed for pillow to install

This commit is contained in:
Thomas A Caswell 2024-05-10 12:52:09 -04:00
parent bfbe339ae3
commit b4efed8b57
No known key found for this signature in database
GPG Key ID: BCD928050D713D75

View File

@ -23,8 +23,9 @@ from setuptools.command.build_ext import build_ext
def get_version():
version_file = "src/PIL/_version.py"
with open(version_file, encoding="utf-8") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
lcl = {}
exec(compile(f.read(), version_file, "exec"), lcl)
return lcl["__version__"]
configuration = {}