Skip to contentSkip to conversation

python-numpy : Add support for x86-64 builds.

PATCH New Philip Balister 1 participant 1 message May 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-numpy : Add support for x86-64 builds.

Build tested with a qemux86-64 build.

---
 .../python/python-numpy/x86-64/_numpyconfig.h      |  30 +++++
 .../python/python-numpy/x86-64/config.h            | 139 +++++++++++++++++++++
 .../recipes-devtools/python/python-numpy_1.7.0.bb  |   5 +-
 3 files changed, 173 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h
 create mode 100644 meta-oe/recipes-devtools/python/python-numpy/x86-64/config.h
meta-oe/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h new file +30 -0
new file mode 100644
index 0000000..be57ac2
@@ -0,0 +1,30 @@
+#define NPY_HAVE_ENDIAN_H 1
+#define NPY_SIZEOF_SHORT SIZEOF_SHORT
+#define NPY_SIZEOF_INT SIZEOF_INT
+#define NPY_SIZEOF_LONG SIZEOF_LONG
+#define NPY_SIZEOF_FLOAT 4
+#define NPY_SIZEOF_COMPLEX_FLOAT 8
+#define NPY_SIZEOF_DOUBLE 8
+#define NPY_SIZEOF_COMPLEX_DOUBLE 16
+#define NPY_SIZEOF_LONGDOUBLE 16
+#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
+#define NPY_SIZEOF_PY_INTPTR_T 8
+#define NPY_SIZEOF_PY_LONG_LONG 8
+#define NPY_SIZEOF_LONGLONG 8
+#define NPY_NO_SMP 0
+#define NPY_HAVE_DECL_ISNAN
+#define NPY_HAVE_DECL_ISINF
+#define NPY_HAVE_DECL_ISFINITE
+#define NPY_HAVE_DECL_SIGNBIT
+#define NPY_USE_C99_COMPLEX 1
+#define NPY_HAVE_COMPLEX_DOUBLE 1
+#define NPY_HAVE_COMPLEX_FLOAT 1
+#define NPY_HAVE_COMPLEX_LONG_DOUBLE 1
+#define NPY_USE_C99_FORMATS 1
+#define NPY_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
+#define NPY_ABI_VERSION 0x01000009
+#define NPY_API_VERSION 0x00000007
+
+#ifndef __STDC_FORMAT_MACROS
+#define __STDC_FORMAT_MACROS 1
+#endif
meta-oe/recipes-devtools/python/python-numpy/x86-64/config.h new file +139 -0

139 lines not on this page · raw message

meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb +4 -1
index a3698d3..f6b435c 100644
@@ -20,7 +20,10 @@ CONFIGFILESURI_mipsel = "file://config.h \
 
 CONFIGFILESURI_i586 = "file://config.h \
                        file://numpyconfig.h \
-"
+                      "
+CONFIGFILESURI_x86-64 = "file://config.h \
+	   file://_numpyconfig.h \
+	  "
 
 S = "${WORKDIR}/numpy-${PV}"
 
Signature · 1 line
1.7.11.7