-
-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (20 loc) · 632 Bytes
/
setup.py
File metadata and controls
26 lines (20 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from setuptools import setup
from setuptools_rust import RustBin
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
with open('Cargo.toml') as f:
for line in f:
if line.startswith('version = "'):
_, VERSION, _ = line.split('"')
break
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
super().finalize_options()
self.root_is_pure = False
def get_tag(self):
_, _, plat = super().get_tag()
return 'py3', 'none', plat
setup(
version=VERSION,
rust_extensions=[RustBin("sentry-cli")],
cmdclass={'bdist_wheel': bdist_wheel},
)