PR#4100: setup.py: Fix version retrieval on Python 3.13+
Merges #4100 https://pagure.io/koji/pull-request/4100 Fixes: #4101 https://pagure.io/koji/issue/4101 setup.py: Fix version retrieval on Python 3.13+
This commit is contained in:
commit
d982b5ac4f
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
|
@ -25,8 +25,9 @@ def get_install_requires():
|
|||
|
||||
def get_version():
|
||||
cwd = os.path.dirname(__file__)
|
||||
exec(open(os.path.join(cwd, 'koji/_version.py'), 'rt').read())
|
||||
return locals()['__version__']
|
||||
lcls = {}
|
||||
exec(open(os.path.join(cwd, 'koji/_version.py'), 'rt').read(), None, lcls)
|
||||
return lcls['__version__']
|
||||
|
||||
|
||||
def get_long_description():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue