-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
50 lines (44 loc) · 1.04 KB
/
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
41
42
43
44
45
46
47
48
49
50
from distutils.core import setup, Extension
from os import path
d = path.abspath(path.dirname(__file__))
with open(path.join(d, 'README.rst')) as f:
long_description = f.read()
libpycades = Extension(
name='pycryptoprosdk.libpycades',
sources=[
'pycryptoprosdk/libpycades.cpp',
],
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'),
],
language='c++',
extra_link_args=[
'-L/opt/cprocsp/lib/amd64',
'-lcapi20',
'-lcapi10',
'-lcades',
'-lrdrsup',
]
)
setup(
name='pycryptoprosdk',
version='1.0.0',
url='https://github.com/Keyintegrity/pycryptoprosdk',
author='uishnik',
author_email='uishnik@yandex.ru',
long_description=long_description,
packages=[
'pycryptoprosdk',
],
ext_modules=[
libpycades,
]
)