We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bbbdcf commit 429179bCopy full SHA for 429179b
python/setup.py
@@ -1,8 +1,17 @@
1
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__
12
-# All other configuration is in setup.cfg / pyproject.toml.
-# This file is kept for the C-extension definition.
13
setup(
14
+ version=version,
15
ext_modules=[Extension('example', sources=['example.c'])],
16
zip_safe=False,
-)
17
+)
0 commit comments