forked from tonybaloney/Pyjion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.48 KB
/
setup.py
File metadata and controls
50 lines (46 loc) · 1.48 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
47
48
49
50
from skbuild import setup
from packaging.version import LegacyVersion
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 LegacyVersion(get_cmake_version()) < LegacyVersion("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='1.2.1',
description='A JIT compiler wrapper for CPython',
author='Anthony Shaw',
author_email='anthonyshaw@apache.org',
url='https://github.com/tonybaloney/Pyjion',
project_urls={
'Documentation': 'https://pyjion.readthedocs.io/',
},
license='MIT',
packages=['pyjion'],
package_dir={'': 'src'},
setup_requires=setup_requires,
extras_require={
'dis': ["rich", "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'],
}
)