-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
70 lines (65 loc) · 2.15 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import os
import sys
try:
import setuptools
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools"])
if errno:
print("Please install setuptools package")
raise SystemExit(errno)
else:
import setuptools
try:
import setuptools_rust
except ImportError:
import subprocess
errno = subprocess.call([sys.executable, "-m", "pip", "install", "setuptools-rust"])
if errno:
print("Please install setuptools-rust package")
raise SystemExit(errno)
else:
import setuptools_rust
setuptools.setup(
name="boytacean",
version="0.10.14",
author="João Magalhães",
author_email="[email protected]",
description="A Game Boy emulator that is written in Rust",
license="Apache License, Version 2.0",
keywords="gameboy emulator rust",
url="https://boytacean.joao.me",
packages=["boytacean"],
test_suite="boytacean.test",
package_dir={"": os.path.normpath("src/python")},
rust_extensions=[
setuptools_rust.RustExtension(
"boytacean.boytacean",
binding=setuptools_rust.Binding.PyO3,
features=["python"],
)
],
install_requires=[],
setup_requires=["setuptools-rust", "wheel", "pillow"],
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
long_description=open(os.path.join(os.path.dirname(__file__), "README.md"), "rb")
.read()
.decode("utf-8"),
long_description_content_type="text/markdown",
)