We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89373b8 commit 2640753Copy full SHA for 2640753
setup.py
@@ -1,11 +1,19 @@
1
from setuptools import find_packages, setup
2
from setuptools.dist import Distribution
3
4
+VERSION = "1.0.0"
5
+
6
7
# Tested with wheel v0.45.1
8
class BinaryDistribution(Distribution):
9
def has_ext_modules(self):
10
return True
11
12
-setup(packages=find_packages(), distclass=BinaryDistribution)
13
+def write_version_file(version, filepath="bitsandbytes/_version.py"):
14
+ with open(filepath, "w") as f:
15
+ f.write(f'__version__ = "{version}"\n')
16
+ return version
17
18
19
+setup(packages=find_packages(), distclass=BinaryDistribution, version=write_version_file(VERSION))
0 commit comments