-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
31 lines (27 loc) · 902 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
from distutils.core import setup, Extension
from distutils import sysconfig
cfg_vars = sysconfig.get_config_vars()
for key, value in cfg_vars.items():
if type(value) == str:
cfg_vars[key] = value.replace('-Wstrict-prototypes', '')
cpp_args = ['-std=c++11']
ext_modules = [
Extension(
'HEAAN',
['src/base64.cpp', 'src/wrapper.cpp'],
include_dirs=['/usr/include/python3.6', 'pybind11/include', '/usr/local/include', 'HEAAN/src'],
language='c++',
extra_compile_args=cpp_args,
extra_objects=['/usr/local/lib/libntl.so', 'HEAAN/lib/libHEAAN.a'], # both lib need compiled with -fPIC
),
]
setup(
name='HEAAN',
version='2.1.0',
author='Huelse',
author_email='huelse@oini.top',
description='Python wrapper for HEAAN',
url='https://github.com/Huelse/HEAAN-Python',
license='MIT',
ext_modules=ext_modules,
)