-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 757 Bytes
/
setup.py
File metadata and controls
30 lines (26 loc) · 757 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
25
26
27
28
29
30
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension, build_ext
import os
include_dirs = [
'include',
'libs',
'pybind11/include' if os.path.exists('pybind11/include') else ''
]
include_dirs = [d for d in include_dirs if d]
sfc_module = Pybind11Extension(
'drylab',
sources=[
'drylab.cpp',
'src/atom.cpp',
'src/system.cpp',
'src/ElemsDB.cpp'
],
include_dirs=include_dirs, # CRITICAL: Tells the compiler where the .h files are
cxx_std=17, # Ensures C++17 is used on all platforms
)
setup(
name='drylab',
version='1.0.0', # Add a version number for the Wheel
ext_modules=[sfc_module],
cmdclass={'build_ext': build_ext},
)