aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-py/0001-remove-setuptools_scm.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-03-16 09:10:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-04-05 18:18:17 +0000
commit61f1f6da093f16b102c801a2802b5675fd955c4c (patch)
tree86aa5d5d47fad44186259268d4360c1fe0492e2b /main/py3-py/0001-remove-setuptools_scm.patch
parenta26cfc517154942ff22c8f9f82e8dfeb2c85bb0c (diff)
downloadaports-61f1f6da093f16b102c801a2802b5675fd955c4c.tar.gz
aports-61f1f6da093f16b102c801a2802b5675fd955c4c.tar.bz2
aports-61f1f6da093f16b102c801a2802b5675fd955c4c.tar.xz
main/py3-py: fix setting the version for the egg
Diffstat (limited to 'main/py3-py/0001-remove-setuptools_scm.patch')
-rw-r--r--main/py3-py/0001-remove-setuptools_scm.patch13
1 files changed, 11 insertions, 2 deletions
diff --git a/main/py3-py/0001-remove-setuptools_scm.patch b/main/py3-py/0001-remove-setuptools_scm.patch
index 138767ed92..34a9728c32 100644
--- a/main/py3-py/0001-remove-setuptools_scm.patch
+++ b/main/py3-py/0001-remove-setuptools_scm.patch
@@ -1,9 +1,18 @@
diff --git a/setup.py b/setup.py
-index d097daa5..343c65c3 100644
+index d097daa..672c6d4 100644
--- a/setup.py
+++ b/setup.py
-@@ -6,8 +6,6 @@ def main():
+@@ -1,13 +1,15 @@
+ from setuptools import setup, find_packages
+
++ver = {}
++with open("py/_version.py") as f:
++ exec(f.read(), ver)
+
+ def main():
+ setup(
name='py',
++ version=ver['version'],
description='library with cross-python path, ini-parsing, io, code, log facilities',
long_description=open('README.rst').read(),
- use_scm_version={"write_to": "py/_version.py"},