|
6 | 6 | import sys |
7 | 7 | from setuptools import setup |
8 | 8 | from distutils.sysconfig import get_python_inc |
| 9 | +import pybind11 |
9 | 10 | from pybind11.setup_helpers import Pybind11Extension, build_ext |
10 | 11 |
|
11 | 12 | __version__ = "4.1.2" |
12 | 13 | BASE_DIR = Path(__file__).resolve().parent |
13 | 14 |
|
14 | | -include_dirs = [get_python_inc(), 'pybind11/include', 'SEAL/native/src', 'SEAL/build/native/src'] |
| 15 | +include_dirs = [get_python_inc(), pybind11.get_include(), 'SEAL/native/src', 'SEAL/build/native/src'] |
15 | 16 |
|
16 | 17 | if platform.system() == "Windows": |
17 | 18 | extra_objects = sorted( |
|
22 | 23 | else: |
23 | 24 | extra_objects = sorted(glob('SEAL/build/lib/*.a')) |
24 | 25 |
|
25 | | -cpp_args = ['/std:c++latest'] if platform.system() == "Windows" else ['-std=c++17'] |
| 26 | +cpp_args = ['/std:c++17', '/utf-8', '/bigobj'] if platform.system() == "Windows" else ['-std=c++17'] |
26 | 27 |
|
27 | 28 | if len(extra_objects) < 1 or not os.path.exists(extra_objects[0]): |
28 | | - print('Not found the seal lib file, check the `SEAL/build/lib`') |
| 29 | + print('Not found the seal lib file, check the "SEAL/build/lib"') |
29 | 30 | sys.exit(1) |
30 | 31 |
|
31 | 32 |
|
@@ -60,7 +61,7 @@ def _copy_typing_files(self): |
60 | 61 | include_dirs=include_dirs, |
61 | 62 | extra_compile_args=cpp_args, |
62 | 63 | extra_objects=extra_objects, |
63 | | - define_macros = [('VERSION_INFO', __version__)], |
| 64 | + define_macros=[('VERSION_INFO', __version__)], |
64 | 65 | ), |
65 | 66 | ] |
66 | 67 |
|
|
0 commit comments