We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d9be3e commit 3f4f412Copy full SHA for 3f4f412
setup.py
@@ -73,15 +73,21 @@ def run_compile_ssu(self):
73
else:
74
LINK_ARGS = []
75
76
+if 'CONDA_PREFIX' in os.environ:
77
+ CONDA_INCLUDES = [os.environ.get('CONDA_PREFIX') + '/include']
78
+else:
79
+ CONDA_INCLUDES = []
80
+
81
USE_CYTHON = os.environ.get('USE_CYTHON', True)
82
ext = '.pyx' if USE_CYTHON else '.cpp'
83
extensions = [Extension("unifrac._api",
84
sources=["unifrac/_api" + ext,
85
"sucpp/api.cpp"],
86
language="c++",
- extra_compile_args=["-std=c++11"],
- extra_link_args=["-std=c++11"] + LINK_ARGS,
- include_dirs=[np.get_include()] + ['sucpp/'],
87
+ extra_link_args=LINK_ARGS,
88
+ include_dirs=([np.get_include()] +
89
+ ['sucpp/'] +
90
+ CONDA_INCLUDES),
91
libraries=['ssu'])]
92
93
if USE_CYTHON:
0 commit comments