-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (34 loc) · 882 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
from setuptools import Extension, setup
core_module = Extension(
name="gmalglib.core",
sources=[
"src/gmalglib/coremodule.c",
"src/gmalglib/core/sm3.c",
"src/gmalglib/core/sm4.c",
"src/gmalglib/core/zuc.c",
"src/gmalglib/core/bignum.c",
"src/gmalglib/core/random.c",
"src/gmalglib/core/sm2table.c",
"src/gmalglib/core/sm2curve.c",
"src/gmalglib/core/sm2.c",
],
include_dirs=[
"include",
"include/python3",
],
depends=[
"include/gmalglib/sm3.h",
"include/gmalglib/sm4.h",
"include/gmalglib/zuc.h",
"include/gmalglib/bignum.h",
"include/gmalglib/random.h",
"include/gmalglib/sm2table.h",
"include/gmalglib/sm2curve.h",
"include/gmalglib/sm2.h",
]
)
setup(
ext_modules=[
core_module
]
)