-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (31 loc) · 839 Bytes
/
setup.py
File metadata and controls
36 lines (31 loc) · 839 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
27
28
29
30
31
32
33
34
35
36
from distutils.core import setup, Extension
PythonCSP = Extension(
name='PythonCSP',
sources=['PythonCSP/pythoncsp.c'],
include_dirs=[
'/opt/cprocsp/include',
'/opt/cprocsp/include/cpcsp',
'/opt/cprocsp/include/pki',
],
define_macros=[
('UNIX', '1'),
('HAVE_LIMITS_H', '1'),
('HAVE_STDINT_H', '1'),
('SIZEOF_VOID_P', '8'),
],
extra_link_args=[
'-L/opt/cprocsp/lib/amd64',
'-lcapi20',
'-lcapi10',
'-lrdrsup',
]
)
def main():
setup(name="PythonCSP",
version="0.1",
description="Python interface for the Crypto Pro function",
author="Nikolay Kravchenko",
author_email="nikolay.kravchenko@gmail.com",
ext_modules=[PythonCSP])
if __name__ == "__main__":
main()