forked from microsoft/Pyjion
-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
setup.py
49 lines (45 loc) · 1.5 KB
/
setup.py
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
47
48
49
from skbuild import setup
from packaging.version import parse
from skbuild.exceptions import SKBuildError
from skbuild.cmaker import get_cmake_version
# Add CMake as a build requirement if cmake is not installed or is too low a version
setup_requires = []
try:
if parse(get_cmake_version()) < parse("3.13"):
setup_requires.append("cmake")
except SKBuildError:
setup_requires.append("cmake")
with open("README.md", "r") as fh:
long_description = fh.read()
with open("CHANGELOG.md", "r") as fh:
long_description += "\n\n" + fh.read()
setup(
name="pyjion",
version="2.0.0",
description="A JIT compiler wrapper for CPython",
author="Anthony Shaw",
author_email="anthonyshaw@apache.org",
url="https://www.trypyjion.com/",
project_urls={
"Documentation": "https://pyjion.readthedocs.io/",
"Repository": "https://github.com/tonybaloney/Pyjion",
},
license="MIT",
packages=["pyjion"],
package_dir={"": "src"},
setup_requires=setup_requires,
extras_require={"dis": ["rich>=11.0", "distorm3"]},
python_requires="==3.10.*",
include_package_data=True,
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": ["pyjion = pyjion.__main__:main"],
},
)