-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
43 lines (38 loc) · 938 Bytes
/
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
#!/usr/bin/env python
import os
import numpy as np
from setuptools import find_packages, setup
from setuptools.extension import Extension
if os.name == "nt":
std_libs = []
else:
std_libs = ["m"]
cython_extensions = [
Extension(
"pyxsim.lib.sky_functions",
["pyxsim/lib/sky_functions.pyx"],
language="c",
libraries=std_libs,
include_dirs=[np.get_include()],
),
Extension(
"pyxsim.lib.spectra",
["pyxsim/lib/spectra.pyx"],
language="c",
libraries=std_libs,
include_dirs=[np.get_include()],
),
Extension(
"pyxsim.lib.interpolate",
["pyxsim/lib/interpolate.pyx"],
language="c",
libraries=std_libs,
include_dirs=[np.get_include()],
),
]
setup(
packages=find_packages(),
url="http://github.com/jzuhone/pyxsim",
include_package_data=True,
ext_modules=cython_extensions,
)