forked from yungwine/pytvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (38 loc) · 1.34 KB
/
setup.py
File metadata and controls
46 lines (38 loc) · 1.34 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
plat_name = 'manylinux2014_x86_64'
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
class BinaryDistribution(setuptools.dist.Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(foo):
return True
setuptools.setup(
name="pytvm",
version="0.0.16",
author="Maksim Kurbatov",
author_email="cyrbatoff@gmail.com",
description="Python TVM emulator",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages('.', exclude=['.idea', 'tests', 'examples']),
package_data={'pytvm': ['engine/**/*']},
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
],
url="https://github.com/yungwine/pytvm",
python_requires='>=3.9',
py_modules=["pytvm"],
# cmdclass={'bdist_wheel': bdist_wheel},
install_requires=[
"pytoniq-core>=0.1.31",
],
distclass=BinaryDistribution
)