Skip to content

Commit

Permalink
Fix wrong include flags for building python extension
Browse files Browse the repository at this point in the history
Fix an error that made the include paths for building the python
extension incorrect, which resulted in missing numpy headers on Mac OS.
  • Loading branch information
dbogdanov committed Jan 30, 2020
1 parent 344028c commit 4237da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4237da9

Please sign in to comment.