-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·40 lines (33 loc) · 894 Bytes
/
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
#!/usr/bin/env python3
import sys
import setuptools
ext_modules = []
if sys.platform == "darwin":
ext_modules.append(
setuptools.Extension(
"hgext3rd.credentials.keychain",
sources=["hgext3rd/credentials/keychain.m"],
py_limited_api=True,
define_macros=[
("PY_SSIZE_T_CLEAN", 1),
],
extra_compile_args=[
"-Wall",
"-Wextra",
"-gfull",
"-fobjc-arc",
"-Wno-unused-parameter",
"-Wno-missing-field-initializers",
],
extra_link_args=[
"-framework",
"Foundation",
"-framework",
"Security",
],
),
)
if __name__ == "__main__":
setuptools.setup(
ext_modules=ext_modules,
)