forked from kmsmith137/kszx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (20 loc) · 671 Bytes
/
setup.py
File metadata and controls
24 lines (20 loc) · 671 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
# Reference: https://github.com/pybind/python_example/blob/master/setup.py
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
cpp_source_files = [
"cpp/cpp_kernels.cpp",
"cpp/cic.cpp",
"cpp/cubic.cpp",
"cpp/estimate_power_spectrum.cpp",
"cpp/kbin_average.cpp"
]
ext_module = Pybind11Extension("kszx.cpp_kernels", cpp_source_files, extra_compile_args = ['-O3'])
setup(
name = 'kszx',
version = '0.0.1',
packages = [ 'kszx', 'kszx.tests', 'kszx.retirement_home' ],
ext_modules = [ ext_module ],
cmdclass = {"build_ext": build_ext},
zip_safe = False,
python_requires = ">=3.11"
)