- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·26 lines (22 loc) · 593 Bytes
/
Copy pathsetup.py
File metadata and controls
executable file
·26 lines (22 loc) · 593 Bytes
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
#!/usr/bin/env python
importsysconfig
fromsetuptoolsimportExtension, setup
ifsysconfig.get_config_var("Py_GIL_DISABLED"):
options= {}
define_macros= []
py_limited_api=False
else:
options= {"bdist_wheel": {"py_limited_api": "cp310"}}
define_macros= [("Py_LIMITED_API", "0x030A00f0")]
py_limited_api=True
setup(
options=options,
ext_modules=[
Extension(
"getdents._getdents",
sources=["getdents/_getdents.c"],
define_macros=define_macros,
py_limited_api=py_limited_api,
),
],
)