-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (29 loc) · 742 Bytes
/
setup.py
File metadata and controls
36 lines (29 loc) · 742 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
31
32
33
34
35
36
import platform
from setuptools import setup, Extension
class PyBind11Include:
def __str__(self):
import pybind11
return pybind11.get_include()
extra_compile_args = []
if platform.system() == "Windows":
extra_compile_args.append('/std:c++14')
else:
extra_compile_args.append('-std=c++14')
setup(
ext_modules=[
Extension(
'daylight',
[
'source/Sunclock.cpp',
'pybind/source/daylight.cpp'
],
include_dirs=[
'include',
'pybind/include',
PyBind11Include(),
],
extra_compile_args=extra_compile_args,
language='c++',
),
],
)