-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (49 loc) · 1.33 KB
/
setup.py
File metadata and controls
50 lines (49 loc) · 1.33 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 platform import system
from setuptools import Extension, setup
setup(
name="bshark",
packages=["bshark"],
install_requires=[
"tree-sitter",
"rich",
"caterpillar@git+https://github.com/MatrixEditor/caterpillar.git",
],
package_data={
"bshark": ["*.pyi", "py.typed", "*.js"],
},
ext_modules=[
Extension(
name="bshark._aidl",
sources=[
"bshark/_aidl.c",
"src/aidl_parser.c",
],
extra_compile_args=(
["-std=c11"] if system() != 'Windows' else []
),
define_macros=[
# ("Py_LIMITED_API", "0x03080000"),
("PY_SSIZE_T_CLEAN", None)
],
include_dirs=["include"],
py_limited_api=True,
),
Extension(
name="bshark._java",
sources=[
"bshark/_java.c",
"src/java_parser.c",
],
extra_compile_args=(
["-std=c11"] if system() != 'Windows' else []
),
define_macros=[
# ("Py_LIMITED_API", "0x03080000"),
("PY_SSIZE_T_CLEAN", None)
],
include_dirs=["include"],
py_limited_api=True,
)
],
zip_safe=False
)