-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py.laptop
41 lines (35 loc) · 1.79 KB
/
setup.py.laptop
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
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
import numpy
extra_compile_args=['-fPIC']
extra_link_args=[]
OMP=True
if OMP:
extra_compile_args+=['-fopenmp']
extra_link_args+=["-fopenmp"]
myext = Extension("pydive.pydive",
sources=['pydive/pydive.pyx',
#'pydive/delaunay_backend.cpp'
],
include_dirs=[numpy.get_include(), '/usr/include', '/usr/local/inculde'
'/global/common/sw/cray/cnl7/haswell/gsl/2.5/intel/19.0.3.199/7twqxxq/include',
#'/home/daniel/libraries/cgal/CGAL-5.1/include',
#'/home/daniel/libraries/CGAL-4.9/include',
'/home/daniel/anaconda3/envs/dive/include'
'/home/daniel/anaconda3/envs/dive/include/boost'],
library_dirs=['/usr/local/lib',
'/usr/lib/x86_64-linux-gnu',
#'/global/common/sw/cray/cnl7/haswell/gsl/2.5/intel/19.0.3.199/7twqxxq/lib',
'/home/daniel/anaconda3/envs/dive/lib',
#'/home/daniel/libraries/cgal/CGAL-5.1/lib'
#'/home/daniel/libraries/CGAL-4.9/lib'
],
libraries=['m', 'gsl', 'gslcblas', 'CGAL', 'gmp', 'mpfr'],
language='c++',
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args
)
setup(name='pydive',
author="Daniel Forero & Cheng Zhao",
packages=find_packages(),
ext_modules=cythonize([myext]))