Skip to content

Commit 9f1b3c4

Browse files
committed
Set compiler flags in python packaging, remove libproj
1 parent 790e169 commit 9f1b3c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extras/python/setup.in.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def run(self):
3333
sources=glob.glob('src/api/*.cpp') + glob.glob('src/api/*.c') + ['src/gridppPYTHON_wrap.cxx'],
3434
#language="c++",
3535
#swig_opts=['-I./include', '-c++', '-I/usr/include/python3.6m'],
36-
libraries=["gsl", "gslcblas", "proj", "armadillo"],
36+
libraries=["gsl", "gslcblas", "armadillo"],
37+
extra_compile_args="${CMAKE_CXX_FLAGS}".split(),
38+
extra_link_args="${CMAKE_CXX_FLAGS}".split(),
3739
library_dirs=["/usr/lib/x86_64-linux-gnu/"],
3840
include_dirs=['./include']
3941
)

0 commit comments

Comments
 (0)