Skip to content

Commit 429179b

Browse files
committed
upadte
1 parent 9bbbdcf commit 429179b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

python/setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
from setuptools import setup, Extension
2+
import os
3+
import sys
4+
5+
6+
version = "0.0.0"
7+
version_file = os.path.join(os.path.dirname(__file__), "pyvsag", "_version.py")
8+
if os.path.exists(version_file):
9+
with open(version_file) as f:
10+
exec(f.read())
11+
version = __version__
212

3-
# All other configuration is in setup.cfg / pyproject.toml.
4-
# This file is kept for the C-extension definition.
513
setup(
14+
version=version,
615
ext_modules=[Extension('example', sources=['example.c'])],
716
zip_safe=False,
8-
)
17+
)

0 commit comments

Comments
 (0)