[pygtk] setup.py: add NUMPY_INCLUDE dir to gtk.include_dirs
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] setup.py: add NUMPY_INCLUDE dir to gtk.include_dirs
- Date: Thu, 4 Nov 2010 22:47:00 +0000 (UTC)
commit e46b1bd5a931aa78421bb9063dcf971b0dc55e2f
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Wed Nov 3 10:59:37 2010 +0100
setup.py: add NUMPY_INCLUDE dir to gtk.include_dirs
setup.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/setup.py b/setup.py
index 7811261..d32e65e 100755
--- a/setup.py
+++ b/setup.py
@@ -296,6 +296,9 @@ if gtk.can_build():
import numpy
numpy # pyflakes
GLOBAL_MACROS.append(('HAVE_NUMPY', 1))
+ NUMPY_INCLUDE = os.path.join(os.path.dirname(numpy.__file__),
+ 'core', 'include')
+ gtk.include_dirs.append(NUMPY_INCLUDE)
except ImportError:
print '* numpy module could not be found, will build without numpy support.'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]