From: Jiří Pinkava Date: Sat, 22 Nov 2014 03:52:58 +0000 (+0100) Subject: fix numpy include path X-Git-Tag: libsigrok-0.4.0~698 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cd5623ca86d517d5e9d02d195ad2f744e8e16614;p=libsigrok.git fix numpy include path --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 7a328fe1..9b5e9984 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -20,6 +20,7 @@ from setuptools import setup, find_packages, Extension from distutils.command.build_py import build_py as _build_py from distutils.command.build_ext import build_ext as _build_ext +import numpy as np import subprocess import os @@ -36,6 +37,7 @@ includes = ['../../include', '../cxx/include'] includes += [os.path.join(srcdir, path) for path in includes] includes += ['../..', '../../include/libsigrok', '../cxx/include/libsigrok'] includes += [i[2:] for i in sr_includes] +includes += [np.get_include(), ] libdirs = ['../../.libs', '../cxx/.libs'] + [l[2:] for l in sr_lib_dirs] libs = [l[2:] for l in sr_libs] + ['sigrokxx']