From 4237da97237397caf837dc79020f34af8dfc35b2 Mon Sep 17 00:00:00 2001 From: Dmitry Bogdanov Date: Thu, 30 Jan 2020 23:31:52 +0100 Subject: [PATCH] Fix wrong include flags for building python extension Fix an error that made the include paths for building the python extension incorrect, which resulted in missing numpy headers on Mac OS. --- src/python/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/wscript b/src/python/wscript index c62eef877..10e4765ba 100644 --- a/src/python/wscript +++ b/src/python/wscript @@ -52,7 +52,7 @@ def build(ctx): source = ctx.path.ant_glob('essentia.cpp parsing.cpp pytypes/*.cpp'), target = '_essentia', features = 'pyext', - includes = NUMPY_INCPATH + [ '.', 'pytypes' ] + ctx.env.INCLUDES_ESSENTIA if ctx.env.ONLY_PYTHON else adjust(ctx.env.INCLUDES, '..'), + includes = NUMPY_INCPATH + [ '.', 'pytypes' ] + (ctx.env.INCLUDES_ESSENTIA if ctx.env.ONLY_PYTHON else adjust(ctx.env.INCLUDES, '..')), cxxflags = [ '-w' ], install_path = '${PYTHONDIR}/essentia', use = ctx.env.USE_LIBS if ctx.env.ONLY_PYTHON else 'essentia ' #+ ctx.env.USE_LIBS