forked from LGro/PyAPSI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (42 loc) · 1.32 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
import os
from glob import glob
# Available at setup time due to pyproject.toml
from pybind11.setup_helpers import Pybind11Extension
from setuptools import setup
__version__ = "0.0.1"
vcpkg_installed_dir = os.environ["VCPKG_INSTALLED_DIR"]
ext_modules = [
Pybind11Extension(
"pyapsi",
sorted(glob("src/*.cpp")),
define_macros=[
("VERSION_INFO", __version__),
("__LINUX__", 1),
("_X86_", 1),
("GENERIC_IMPLEMENTATION", 1),
],
include_dirs=[
f"{vcpkg_installed_dir}/x64-linux/include",
f"{vcpkg_installed_dir}/x64-linux/include/gsl",
f"{vcpkg_installed_dir}/x64-linux/include/Kuku-2.1",
f"{vcpkg_installed_dir}/x64-linux/include/SEAL-3.7",
f"{vcpkg_installed_dir}/x64-linux/include/APSI-0.7",
],
extra_objects=sorted(glob(f"{vcpkg_installed_dir}/x64-linux/lib/*.a")),
cxx_std=17,
extra_compile_args=[],
),
]
setup(
name="pyapsi",
version=__version__,
author="Lukas Grossberger",
author_email="[email protected]",
url="https://github.com/LGro/pyapsi",
description="Python wrapper for APSI",
long_description="",
ext_modules=ext_modules,
extras_require={"test": "pytest"},
zip_safe=False,
python_requires=">=3.8",
)