Группа :: Development/Python3
Пакет: python3-module-Chaco
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: fix-include-libnumpy-for-python3.patch
Скачать
Скачать
diff --git a/chaco/_cython_speedups.c b/chaco/_cython_speedups.c
index 2b20855d..3bb47bc2 100644
--- a/chaco/_cython_speedups.c
+++ b/chaco/_cython_speedups.c
@@ -590,8 +590,8 @@ static CYTHON_INLINE float __PYX_NAN() {
/* Early includes */
#include <string.h>
#include <stdio.h>
-#include "numpy/arrayobject.h"
-#include "numpy/ufuncobject.h"
+#include "numpy-py3/arrayobject.h"
+#include "numpy-py3/ufuncobject.h"
#include "_isnan.h"
#ifdef _OPENMP
#include <omp.h>
diff --git a/chaco/_speedups.cpp b/chaco/_speedups.cpp
index 9f6fc37c..c86fd415 100644
--- a/chaco/_speedups.cpp
+++ b/chaco/_speedups.cpp
@@ -2,8 +2,8 @@
#include <math.h>
#include "Python.h"
#include "structmember.h"
-#include "numpy/arrayobject.h"
-#include "numpy/ufuncobject.h"
+#include "numpy-py3/arrayobject.h"
+#include "numpy-py3/ufuncobject.h"
#define SAFE_FROMARRAY_1D(a, type) \
((a) == NULL) ? (a) : PyArray_FROMANY(a, type, 1, 1, NPY_IN_ARRAY)
diff --git a/chaco/contour/cntr.c b/chaco/contour/cntr.c
index 741514ee..065b85fd 100644
--- a/chaco/contour/cntr.c
+++ b/chaco/contour/cntr.c
@@ -20,10 +20,10 @@
#include <stdio.h>
#ifdef NUMPY
-#include "numpy/arrayobject.h"
+#include "numpy-py3/arrayobject.h"
# ifndef PyArray_SBYTE
-# include "numpy/oldnumeric.h"
-# include "numpy/old_defines.h"
+# include "numpy-py3/oldnumeric.h"
+# include "numpy-py3/old_defines.h"
# endif
#else
# include "Numeric/arrayobject.h"
--
2.24.1