Skip to content

Commit

Permalink
setup.py: don't use local()
Browse files Browse the repository at this point in the history
- `local()` is a internal function and broke in python 3.13
- instead use `exec` with a global dict
  • Loading branch information
naveen521kk committed Sep 11, 2024
1 parent 21bd37a commit 0de85c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@


def get_version():
dic = {}
version_file = "manimpango/_version.py"
with open(version_file) as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
exec(compile(f.read(), version_file, "exec"), dic)
return dic["__version__"]


NAME = "ManimPango"
Expand Down

0 comments on commit 0de85c7

Please sign in to comment.