From b4efed8b57c06fcfe616a7cf928a5e694a714533 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 10 May 2024 12:52:09 -0400 Subject: [PATCH] FIX: with python 3.13b1 this change is needed for pillow to install --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7d8e1c1ee..a2daaf98a 100644 --- a/setup.py +++ b/setup.py @@ -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 = {}