diff --git a/setup.py b/setup.py index 73c4eb831..d9ccbcdf2 100644 --- a/setup.py +++ b/setup.py @@ -7,8 +7,13 @@ def read_version(fname="whisper/version.py"): - exec(compile(open(fname, encoding="utf-8").read(), fname, "exec")) - return locals()["__version__"] + frame_locals = {} + exec( + compile(open(fname, encoding="utf-8").read(), fname, "exec"), + globals(), + frame_locals, + ) + return frame_locals["__version__"] requirements = []