diff options
author | Ross Burton <ross.burton@intel.com> | 2014-01-14 15:19:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-14 17:03:56 +0000 |
commit | 4ec992938a65eb656539c3f5974100b04f752273 (patch) | |
tree | 7bd5b84708d0cea2e384e68506451abbe9b9d65d /meta/recipes-devtools/python | |
parent | 7282635343e0ccf7a82ffdb35905bdc2db6093d3 (diff) | |
download | poky-4ec992938a65eb656539c3f5974100b04f752273.tar.gz |
python-numpy: add (from meta-oe)
python-numpy is needed for Piglit. This recipe is taken directly from meta-oe.
(From OE-Core rev: 9bf355cceaec6ebacdcbcc35f9713ff73e1c85da)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
15 files changed, 711 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h b/meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h new file mode 100644 index 0000000000..be57ac27bf --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/aarch64/_numpyconfig.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #define NPY_HAVE_ENDIAN_H 1 | ||
2 | #define NPY_SIZEOF_SHORT SIZEOF_SHORT | ||
3 | #define NPY_SIZEOF_INT SIZEOF_INT | ||
4 | #define NPY_SIZEOF_LONG SIZEOF_LONG | ||
5 | #define NPY_SIZEOF_FLOAT 4 | ||
6 | #define NPY_SIZEOF_COMPLEX_FLOAT 8 | ||
7 | #define NPY_SIZEOF_DOUBLE 8 | ||
8 | #define NPY_SIZEOF_COMPLEX_DOUBLE 16 | ||
9 | #define NPY_SIZEOF_LONGDOUBLE 16 | ||
10 | #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 | ||
11 | #define NPY_SIZEOF_PY_INTPTR_T 8 | ||
12 | #define NPY_SIZEOF_PY_LONG_LONG 8 | ||
13 | #define NPY_SIZEOF_LONGLONG 8 | ||
14 | #define NPY_NO_SMP 0 | ||
15 | #define NPY_HAVE_DECL_ISNAN | ||
16 | #define NPY_HAVE_DECL_ISINF | ||
17 | #define NPY_HAVE_DECL_ISFINITE | ||
18 | #define NPY_HAVE_DECL_SIGNBIT | ||
19 | #define NPY_USE_C99_COMPLEX 1 | ||
20 | #define NPY_HAVE_COMPLEX_DOUBLE 1 | ||
21 | #define NPY_HAVE_COMPLEX_FLOAT 1 | ||
22 | #define NPY_HAVE_COMPLEX_LONG_DOUBLE 1 | ||
23 | #define NPY_USE_C99_FORMATS 1 | ||
24 | #define NPY_VISIBILITY_HIDDEN __attribute__((visibility("hidden"))) | ||
25 | #define NPY_ABI_VERSION 0x01000009 | ||
26 | #define NPY_API_VERSION 0x00000007 | ||
27 | |||
28 | #ifndef __STDC_FORMAT_MACROS | ||
29 | #define __STDC_FORMAT_MACROS 1 | ||
30 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy/aarch64/config.h b/meta/recipes-devtools/python/python-numpy/aarch64/config.h new file mode 100644 index 0000000000..c30b868f2f --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/aarch64/config.h | |||
@@ -0,0 +1,139 @@ | |||
1 | #define HAVE_ENDIAN_H 1 | ||
2 | #define SIZEOF_PY_INTPTR_T 8 | ||
3 | #define SIZEOF_PY_LONG_LONG 8 | ||
4 | #define MATHLIB m | ||
5 | #define HAVE_SIN 1 | ||
6 | #define HAVE_COS 1 | ||
7 | #define HAVE_TAN 1 | ||
8 | #define HAVE_SINH 1 | ||
9 | #define HAVE_COSH 1 | ||
10 | #define HAVE_TANH 1 | ||
11 | #define HAVE_FABS 1 | ||
12 | #define HAVE_FLOOR 1 | ||
13 | #define HAVE_CEIL 1 | ||
14 | #define HAVE_SQRT 1 | ||
15 | #define HAVE_LOG10 1 | ||
16 | #define HAVE_LOG 1 | ||
17 | #define HAVE_EXP 1 | ||
18 | #define HAVE_ASIN 1 | ||
19 | #define HAVE_ACOS 1 | ||
20 | #define HAVE_ATAN 1 | ||
21 | #define HAVE_FMOD 1 | ||
22 | #define HAVE_MODF 1 | ||
23 | #define HAVE_FREXP 1 | ||
24 | #define HAVE_LDEXP 1 | ||
25 | #define HAVE_RINT 1 | ||
26 | #define HAVE_TRUNC 1 | ||
27 | #define HAVE_EXP2 1 | ||
28 | #define HAVE_LOG2 1 | ||
29 | #define HAVE_ATAN2 1 | ||
30 | #define HAVE_POW 1 | ||
31 | #define HAVE_NEXTAFTER 1 | ||
32 | #define HAVE_SINF 1 | ||
33 | #define HAVE_COSF 1 | ||
34 | #define HAVE_TANF 1 | ||
35 | #define HAVE_SINHF 1 | ||
36 | #define HAVE_COSHF 1 | ||
37 | #define HAVE_TANHF 1 | ||
38 | #define HAVE_FABSF 1 | ||
39 | #define HAVE_FLOORF 1 | ||
40 | #define HAVE_CEILF 1 | ||
41 | #define HAVE_RINTF 1 | ||
42 | #define HAVE_TRUNCF 1 | ||
43 | #define HAVE_SQRTF 1 | ||
44 | #define HAVE_LOG10F 1 | ||
45 | #define HAVE_LOGF 1 | ||
46 | #define HAVE_LOG1PF 1 | ||
47 | #define HAVE_EXPF 1 | ||
48 | #define HAVE_EXPM1F 1 | ||
49 | #define HAVE_ASINF 1 | ||
50 | #define HAVE_ACOSF 1 | ||
51 | #define HAVE_ATANF 1 | ||
52 | #define HAVE_ASINHF 1 | ||
53 | #define HAVE_ACOSHF 1 | ||
54 | #define HAVE_ATANHF 1 | ||
55 | #define HAVE_HYPOTF 1 | ||
56 | #define HAVE_ATAN2F 1 | ||
57 | #define HAVE_POWF 1 | ||
58 | #define HAVE_FMODF 1 | ||
59 | #define HAVE_MODFF 1 | ||
60 | #define HAVE_FREXPF 1 | ||
61 | #define HAVE_LDEXPF 1 | ||
62 | #define HAVE_EXP2F 1 | ||
63 | #define HAVE_LOG2F 1 | ||
64 | #define HAVE_COPYSIGNF 1 | ||
65 | #define HAVE_NEXTAFTERF 1 | ||
66 | #define HAVE_SINL 1 | ||
67 | #define HAVE_COSL 1 | ||
68 | #define HAVE_TANL 1 | ||
69 | #define HAVE_SINHL 1 | ||
70 | #define HAVE_COSHL 1 | ||
71 | #define HAVE_TANHL 1 | ||
72 | #define HAVE_FABSL 1 | ||
73 | #define HAVE_FLOORL 1 | ||
74 | #define HAVE_CEILL 1 | ||
75 | #define HAVE_RINTL 1 | ||
76 | #define HAVE_TRUNCL 1 | ||
77 | #define HAVE_SQRTL 1 | ||
78 | #define HAVE_LOG10L 1 | ||
79 | #define HAVE_LOGL 1 | ||
80 | #define HAVE_LOG1PL 1 | ||
81 | #define HAVE_EXPL 1 | ||
82 | #define HAVE_EXPM1L 1 | ||
83 | #define HAVE_ASINL 1 | ||
84 | #define HAVE_ACOSL 1 | ||
85 | #define HAVE_ATANL 1 | ||
86 | #define HAVE_ASINHL 1 | ||
87 | #define HAVE_ACOSHL 1 | ||
88 | #define HAVE_ATANHL 1 | ||
89 | #define HAVE_HYPOTL 1 | ||
90 | #define HAVE_ATAN2L 1 | ||
91 | #define HAVE_POWL 1 | ||
92 | #define HAVE_FMODL 1 | ||
93 | #define HAVE_MODFL 1 | ||
94 | #define HAVE_FREXPL 1 | ||
95 | #define HAVE_LDEXPL 1 | ||
96 | #define HAVE_EXP2L 1 | ||
97 | #define HAVE_LOG2L 1 | ||
98 | #define HAVE_COPYSIGNL 1 | ||
99 | #define HAVE_NEXTAFTERL 1 | ||
100 | #define HAVE_DECL_SIGNBIT | ||
101 | #define HAVE_COMPLEX_H 1 | ||
102 | #define HAVE_CREAL 1 | ||
103 | #define HAVE_CIMAG 1 | ||
104 | #define HAVE_CABS 1 | ||
105 | #define HAVE_CARG 1 | ||
106 | #define HAVE_CEXP 1 | ||
107 | #define HAVE_CSQRT 1 | ||
108 | #define HAVE_CLOG 1 | ||
109 | #define HAVE_CCOS 1 | ||
110 | #define HAVE_CSIN 1 | ||
111 | #define HAVE_CPOW 1 | ||
112 | #define HAVE_CREALF 1 | ||
113 | #define HAVE_CIMAGF 1 | ||
114 | #define HAVE_CABSF 1 | ||
115 | #define HAVE_CARGF 1 | ||
116 | #define HAVE_CEXPF 1 | ||
117 | #define HAVE_CSQRTF 1 | ||
118 | #define HAVE_CLOGF 1 | ||
119 | #define HAVE_CCOSF 1 | ||
120 | #define HAVE_CSINF 1 | ||
121 | #define HAVE_CPOWF 1 | ||
122 | #define HAVE_CREALL 1 | ||
123 | #define HAVE_CIMAGL 1 | ||
124 | #define HAVE_CABSL 1 | ||
125 | #define HAVE_CARGL 1 | ||
126 | #define HAVE_CEXPL 1 | ||
127 | #define HAVE_CSQRTL 1 | ||
128 | #define HAVE_CLOGL 1 | ||
129 | #define HAVE_CCOSL 1 | ||
130 | #define HAVE_CSINL 1 | ||
131 | #define HAVE_CPOWL 1 | ||
132 | #define HAVE_LDOUBLE_IEEE_QUAD_LE 1 | ||
133 | #ifndef __cplusplus | ||
134 | /* #undef inline */ | ||
135 | #endif | ||
136 | |||
137 | #ifndef _NPY_NPY_CONFIG_H_ | ||
138 | #error config.h should never be included directly, include npy_config.h instead | ||
139 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy/arm/config.h b/meta/recipes-devtools/python/python-numpy/arm/config.h new file mode 100644 index 0000000000..17ef186d56 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/arm/config.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* ./src.linux-i686-2.5/numpy/core/include/numpy/config.h */ | ||
2 | /* #define SIZEOF_SHORT 2 */ | ||
3 | /* #define SIZEOF_INT 4 */ | ||
4 | /* #define SIZEOF_LONG 4 */ | ||
5 | /* #define SIZEOF_FLOAT 4 */ | ||
6 | /* #define SIZEOF_DOUBLE 8 */ | ||
7 | #define SIZEOF_LONG_DOUBLE 12 | ||
8 | #define SIZEOF_PY_INTPTR_T 4 | ||
9 | /* #define SIZEOF_LONG_LONG 8 */ | ||
10 | #define SIZEOF_PY_LONG_LONG 8 | ||
11 | /* #define CHAR_BIT 8 */ | ||
12 | #define MATHLIB m | ||
13 | #define HAVE_FLOAT_FUNCS | ||
14 | #define HAVE_LOG1P | ||
15 | #define HAVE_EXPM1 | ||
16 | #define HAVE_INVERSE_HYPERBOLIC | ||
17 | #define HAVE_INVERSE_HYPERBOLIC_FLOAT | ||
18 | #define HAVE_ISNAN | ||
19 | #define HAVE_ISINF | ||
20 | #define HAVE_RINT | ||
21 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h new file mode 100644 index 0000000000..c4bf6547f0 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/arm/numpyconfig.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* cat ./src.linux-i686-2.5/numpy/core/include/numpy/numpyconfig.h */ | ||
2 | /* | ||
3 | * * This file is generated by numpy/core/setup.pyc. DO NOT EDIT | ||
4 | * */ | ||
5 | #define NPY_SIZEOF_SHORT 2 | ||
6 | #define NPY_SIZEOF_INT 4 | ||
7 | #define NPY_SIZEOF_LONG 4 | ||
8 | #define NPY_SIZEOF_FLOAT 4 | ||
9 | #define NPY_SIZEOF_DOUBLE 8 | ||
10 | #define NPY_SIZEOF_LONGDOUBLE 12 | ||
11 | #define NPY_SIZEOF_PY_INTPTR_T 4 | ||
12 | #define NPY_NO_SMP 0 | ||
13 | |||
14 | #define NPY_SIZEOF_LONGLONG 8 | ||
15 | #define NPY_SIZEOF_PY_LONG_LONG 8 | ||
16 | /* #define CHAR_BIT 8 */ | ||
17 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/armeb/config.h b/meta/recipes-devtools/python/python-numpy/armeb/config.h new file mode 100644 index 0000000000..17ef186d56 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/armeb/config.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* ./src.linux-i686-2.5/numpy/core/include/numpy/config.h */ | ||
2 | /* #define SIZEOF_SHORT 2 */ | ||
3 | /* #define SIZEOF_INT 4 */ | ||
4 | /* #define SIZEOF_LONG 4 */ | ||
5 | /* #define SIZEOF_FLOAT 4 */ | ||
6 | /* #define SIZEOF_DOUBLE 8 */ | ||
7 | #define SIZEOF_LONG_DOUBLE 12 | ||
8 | #define SIZEOF_PY_INTPTR_T 4 | ||
9 | /* #define SIZEOF_LONG_LONG 8 */ | ||
10 | #define SIZEOF_PY_LONG_LONG 8 | ||
11 | /* #define CHAR_BIT 8 */ | ||
12 | #define MATHLIB m | ||
13 | #define HAVE_FLOAT_FUNCS | ||
14 | #define HAVE_LOG1P | ||
15 | #define HAVE_EXPM1 | ||
16 | #define HAVE_INVERSE_HYPERBOLIC | ||
17 | #define HAVE_INVERSE_HYPERBOLIC_FLOAT | ||
18 | #define HAVE_ISNAN | ||
19 | #define HAVE_ISINF | ||
20 | #define HAVE_RINT | ||
21 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/armeb/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/armeb/numpyconfig.h new file mode 100644 index 0000000000..c4bf6547f0 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/armeb/numpyconfig.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* cat ./src.linux-i686-2.5/numpy/core/include/numpy/numpyconfig.h */ | ||
2 | /* | ||
3 | * * This file is generated by numpy/core/setup.pyc. DO NOT EDIT | ||
4 | * */ | ||
5 | #define NPY_SIZEOF_SHORT 2 | ||
6 | #define NPY_SIZEOF_INT 4 | ||
7 | #define NPY_SIZEOF_LONG 4 | ||
8 | #define NPY_SIZEOF_FLOAT 4 | ||
9 | #define NPY_SIZEOF_DOUBLE 8 | ||
10 | #define NPY_SIZEOF_LONGDOUBLE 12 | ||
11 | #define NPY_SIZEOF_PY_INTPTR_T 4 | ||
12 | #define NPY_NO_SMP 0 | ||
13 | |||
14 | #define NPY_SIZEOF_LONGLONG 8 | ||
15 | #define NPY_SIZEOF_PY_LONG_LONG 8 | ||
16 | /* #define CHAR_BIT 8 */ | ||
17 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/i586/config.h b/meta/recipes-devtools/python/python-numpy/i586/config.h new file mode 100644 index 0000000000..08e41e3d99 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/i586/config.h | |||
@@ -0,0 +1,108 @@ | |||
1 | #define SIZEOF_PY_INTPTR_T 4 | ||
2 | #define SIZEOF_PY_LONG_LONG 8 | ||
3 | #define MATHLIB m | ||
4 | #define HAVE_SIN | ||
5 | #define HAVE_COS | ||
6 | #define HAVE_TAN | ||
7 | #define HAVE_SINH | ||
8 | #define HAVE_COSH | ||
9 | #define HAVE_TANH | ||
10 | #define HAVE_FABS | ||
11 | #define HAVE_FLOOR | ||
12 | #define HAVE_CEIL | ||
13 | #define HAVE_SQRT | ||
14 | #define HAVE_LOG10 | ||
15 | #define HAVE_LOG | ||
16 | #define HAVE_EXP | ||
17 | #define HAVE_ASIN | ||
18 | #define HAVE_ACOS | ||
19 | #define HAVE_ATAN | ||
20 | #define HAVE_FMOD | ||
21 | #define HAVE_MODF | ||
22 | #define HAVE_FREXP | ||
23 | #define HAVE_LDEXP | ||
24 | #define HAVE_RINT | ||
25 | #define HAVE_TRUNC | ||
26 | #define HAVE_EXP2 | ||
27 | #define HAVE_LOG2 | ||
28 | #define HAVE_ATAN2 | ||
29 | #define HAVE_POW | ||
30 | #define HAVE_NEXTAFTER | ||
31 | #define HAVE_SINF | ||
32 | #define HAVE_COSF | ||
33 | #define HAVE_TANF | ||
34 | #define HAVE_SINHF | ||
35 | #define HAVE_COSHF | ||
36 | #define HAVE_TANHF | ||
37 | #define HAVE_FABSF | ||
38 | #define HAVE_FLOORF | ||
39 | #define HAVE_CEILF | ||
40 | #define HAVE_RINTF | ||
41 | #define HAVE_TRUNCF | ||
42 | #define HAVE_SQRTF | ||
43 | #define HAVE_LOG10F | ||
44 | #define HAVE_LOGF | ||
45 | #define HAVE_LOG1PF | ||
46 | #define HAVE_EXPF | ||
47 | #define HAVE_EXPM1F | ||
48 | #define HAVE_ASINF | ||
49 | #define HAVE_ACOSF | ||
50 | #define HAVE_ATANF | ||
51 | #define HAVE_ASINHF | ||
52 | #define HAVE_ACOSHF | ||
53 | #define HAVE_ATANHF | ||
54 | #define HAVE_HYPOTF | ||
55 | #define HAVE_ATAN2F | ||
56 | #define HAVE_POWF | ||
57 | #define HAVE_FMODF | ||
58 | #define HAVE_MODFF | ||
59 | #define HAVE_FREXPF | ||
60 | #define HAVE_LDEXPF | ||
61 | #define HAVE_EXP2F | ||
62 | #define HAVE_LOG2F | ||
63 | #define HAVE_COPYSIGNF | ||
64 | #define HAVE_NEXTAFTERF | ||
65 | #define HAVE_SINL | ||
66 | #define HAVE_COSL | ||
67 | #define HAVE_TANL | ||
68 | #define HAVE_SINHL | ||
69 | #define HAVE_COSHL | ||
70 | #define HAVE_TANHL | ||
71 | #define HAVE_FABSL | ||
72 | #define HAVE_FLOORL | ||
73 | #define HAVE_CEILL | ||
74 | #define HAVE_RINTL | ||
75 | #define HAVE_TRUNCL | ||
76 | #define HAVE_SQRTL | ||
77 | #define HAVE_LOG10L | ||
78 | #define HAVE_LOGL | ||
79 | #define HAVE_LOG1PL | ||
80 | #define HAVE_EXPL | ||
81 | #define HAVE_EXPM1L | ||
82 | #define HAVE_ASINL | ||
83 | #define HAVE_ACOSL | ||
84 | #define HAVE_ATANL | ||
85 | #define HAVE_ASINHL | ||
86 | #define HAVE_ACOSHL | ||
87 | #define HAVE_ATANHL | ||
88 | #define HAVE_HYPOTL | ||
89 | #define HAVE_ATAN2L | ||
90 | #define HAVE_POWL | ||
91 | #define HAVE_FMODL | ||
92 | #define HAVE_MODFL | ||
93 | #define HAVE_FREXPL | ||
94 | #define HAVE_LDEXPL | ||
95 | #define HAVE_EXP2L | ||
96 | #define HAVE_LOG2L | ||
97 | #define HAVE_COPYSIGNL | ||
98 | #define HAVE_NEXTAFTERL | ||
99 | #define HAVE_DECL_SIGNBIT | ||
100 | #define HAVE_COMPLEX_H | ||
101 | #define HAVE_LDOUBLE_INTEL_EXTENDED_12_BYTES_LE 1 | ||
102 | #ifndef __cplusplus | ||
103 | /* #undef inline */ | ||
104 | #endif | ||
105 | |||
106 | #ifndef _NPY_NPY_CONFIG_H_ | ||
107 | #error config.h should never be included directly, include npy_config.h instead | ||
108 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h new file mode 100644 index 0000000000..ff7938cd96 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/i586/numpyconfig.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef _NPY_NUMPYCONFIG_H_ | ||
2 | #define _NPY_NUMPYCONFIG_H_ | ||
3 | |||
4 | #include "_numpyconfig.h" | ||
5 | |||
6 | /* | ||
7 | * On Mac OS X, because there is only one configuration stage for all the archs | ||
8 | * in universal builds, any macro which depends on the arch needs to be | ||
9 | * harcoded | ||
10 | */ | ||
11 | #ifdef __APPLE__ | ||
12 | #undef NPY_SIZEOF_LONG | ||
13 | #undef NPY_SIZEOF_PY_INTPTR_T | ||
14 | |||
15 | #ifdef __LP64__ | ||
16 | #define NPY_SIZEOF_LONG 8 | ||
17 | #define NPY_SIZEOF_PY_INTPTR_T 8 | ||
18 | #else | ||
19 | #define NPY_SIZEOF_LONG 4 | ||
20 | #define NPY_SIZEOF_PY_INTPTR_T 4 | ||
21 | #endif | ||
22 | #endif | ||
23 | |||
24 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy/mipsel/config.h b/meta/recipes-devtools/python/python-numpy/mipsel/config.h new file mode 100644 index 0000000000..17ef186d56 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/mipsel/config.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* ./src.linux-i686-2.5/numpy/core/include/numpy/config.h */ | ||
2 | /* #define SIZEOF_SHORT 2 */ | ||
3 | /* #define SIZEOF_INT 4 */ | ||
4 | /* #define SIZEOF_LONG 4 */ | ||
5 | /* #define SIZEOF_FLOAT 4 */ | ||
6 | /* #define SIZEOF_DOUBLE 8 */ | ||
7 | #define SIZEOF_LONG_DOUBLE 12 | ||
8 | #define SIZEOF_PY_INTPTR_T 4 | ||
9 | /* #define SIZEOF_LONG_LONG 8 */ | ||
10 | #define SIZEOF_PY_LONG_LONG 8 | ||
11 | /* #define CHAR_BIT 8 */ | ||
12 | #define MATHLIB m | ||
13 | #define HAVE_FLOAT_FUNCS | ||
14 | #define HAVE_LOG1P | ||
15 | #define HAVE_EXPM1 | ||
16 | #define HAVE_INVERSE_HYPERBOLIC | ||
17 | #define HAVE_INVERSE_HYPERBOLIC_FLOAT | ||
18 | #define HAVE_ISNAN | ||
19 | #define HAVE_ISINF | ||
20 | #define HAVE_RINT | ||
21 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/mipsel/numpyconfig.h b/meta/recipes-devtools/python/python-numpy/mipsel/numpyconfig.h new file mode 100644 index 0000000000..c4bf6547f0 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/mipsel/numpyconfig.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* cat ./src.linux-i686-2.5/numpy/core/include/numpy/numpyconfig.h */ | ||
2 | /* | ||
3 | * * This file is generated by numpy/core/setup.pyc. DO NOT EDIT | ||
4 | * */ | ||
5 | #define NPY_SIZEOF_SHORT 2 | ||
6 | #define NPY_SIZEOF_INT 4 | ||
7 | #define NPY_SIZEOF_LONG 4 | ||
8 | #define NPY_SIZEOF_FLOAT 4 | ||
9 | #define NPY_SIZEOF_DOUBLE 8 | ||
10 | #define NPY_SIZEOF_LONGDOUBLE 12 | ||
11 | #define NPY_SIZEOF_PY_INTPTR_T 4 | ||
12 | #define NPY_NO_SMP 0 | ||
13 | |||
14 | #define NPY_SIZEOF_LONGLONG 8 | ||
15 | #define NPY_SIZEOF_PY_LONG_LONG 8 | ||
16 | /* #define CHAR_BIT 8 */ | ||
17 | |||
diff --git a/meta/recipes-devtools/python/python-numpy/trycompile.diff b/meta/recipes-devtools/python/python-numpy/trycompile.diff new file mode 100644 index 0000000000..3ab3d72f2c --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/trycompile.diff | |||
@@ -0,0 +1,33 @@ | |||
1 | --- /tmp/setup.py 2008-09-01 10:37:44.000000000 +0200 | ||
2 | +++ numpy-1.1.1/numpy/core/setup.py 2008-09-01 10:38:20.373198000 +0200 | ||
3 | @@ -80,8 +80,7 @@ | ||
4 | raise SystemError,\ | ||
5 | "Non-existing %s. Perhaps you need to install"\ | ||
6 | " python-dev|python-devel." % (python_h) | ||
7 | - result = config_cmd.try_run(tc,include_dirs=[python_include], | ||
8 | - library_dirs = default_lib_dirs) | ||
9 | + result = config_cmd.try_compile(tc) | ||
10 | if not result: | ||
11 | raise SystemError,"Failed to test configuration. "\ | ||
12 | "See previous error messages for more information." | ||
13 | @@ -95,7 +94,7 @@ | ||
14 | if mathlib: | ||
15 | mathlibs_choices.insert(0,mathlib.split(',')) | ||
16 | for libs in mathlibs_choices: | ||
17 | - if config_cmd.try_run(tc,libraries=libs): | ||
18 | + if config_cmd.try_compile(tc): | ||
19 | mathlibs = libs | ||
20 | break | ||
21 | else: | ||
22 | @@ -180,10 +179,7 @@ | ||
23 | " python-dev|python-devel." % (python_h) | ||
24 | |||
25 | config.numpy_include_dirs | ||
26 | - result = config_cmd.try_run(testcode, | ||
27 | - include_dirs = [python_include] + \ | ||
28 | - config.numpy_include_dirs, | ||
29 | - library_dirs = default_lib_dirs) | ||
30 | + result = config_cmd.try_compile(testcode) | ||
31 | |||
32 | if not result: | ||
33 | raise SystemError,"Failed to generate numpy configuration. "\ | ||
diff --git a/meta/recipes-devtools/python/python-numpy/unbreak-assumptions.diff b/meta/recipes-devtools/python/python-numpy/unbreak-assumptions.diff new file mode 100644 index 0000000000..c5b448167f --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/unbreak-assumptions.diff | |||
@@ -0,0 +1,16 @@ | |||
1 | --- /tmp/system_info.py 2008-08-22 00:38:16.000000000 +0200 | ||
2 | +++ numpy-1.1.1/numpy/distutils/system_info.py 2008-08-22 00:40:33.013198000 +0200 | ||
3 | @@ -137,11 +137,8 @@ | ||
4 | default_x11_lib_dirs = [] | ||
5 | default_x11_include_dirs = [] | ||
6 | else: | ||
7 | - default_lib_dirs = ['/usr/local/lib', '/opt/lib', '/usr/lib', | ||
8 | - '/opt/local/lib', '/sw/lib'] | ||
9 | - default_include_dirs = ['/usr/local/include', | ||
10 | - '/opt/include', '/usr/include', | ||
11 | - '/opt/local/include', '/sw/include'] | ||
12 | + default_lib_dirs = ['/non-existant-dir'] | ||
13 | + default_include_dirs = ['non-existant-dir'] | ||
14 | default_src_dirs = ['.','/usr/local/src', '/opt/src','/sw/src'] | ||
15 | |||
16 | try: | ||
diff --git a/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h b/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h new file mode 100644 index 0000000000..be57ac27bf --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/x86-64/_numpyconfig.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #define NPY_HAVE_ENDIAN_H 1 | ||
2 | #define NPY_SIZEOF_SHORT SIZEOF_SHORT | ||
3 | #define NPY_SIZEOF_INT SIZEOF_INT | ||
4 | #define NPY_SIZEOF_LONG SIZEOF_LONG | ||
5 | #define NPY_SIZEOF_FLOAT 4 | ||
6 | #define NPY_SIZEOF_COMPLEX_FLOAT 8 | ||
7 | #define NPY_SIZEOF_DOUBLE 8 | ||
8 | #define NPY_SIZEOF_COMPLEX_DOUBLE 16 | ||
9 | #define NPY_SIZEOF_LONGDOUBLE 16 | ||
10 | #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 | ||
11 | #define NPY_SIZEOF_PY_INTPTR_T 8 | ||
12 | #define NPY_SIZEOF_PY_LONG_LONG 8 | ||
13 | #define NPY_SIZEOF_LONGLONG 8 | ||
14 | #define NPY_NO_SMP 0 | ||
15 | #define NPY_HAVE_DECL_ISNAN | ||
16 | #define NPY_HAVE_DECL_ISINF | ||
17 | #define NPY_HAVE_DECL_ISFINITE | ||
18 | #define NPY_HAVE_DECL_SIGNBIT | ||
19 | #define NPY_USE_C99_COMPLEX 1 | ||
20 | #define NPY_HAVE_COMPLEX_DOUBLE 1 | ||
21 | #define NPY_HAVE_COMPLEX_FLOAT 1 | ||
22 | #define NPY_HAVE_COMPLEX_LONG_DOUBLE 1 | ||
23 | #define NPY_USE_C99_FORMATS 1 | ||
24 | #define NPY_VISIBILITY_HIDDEN __attribute__((visibility("hidden"))) | ||
25 | #define NPY_ABI_VERSION 0x01000009 | ||
26 | #define NPY_API_VERSION 0x00000007 | ||
27 | |||
28 | #ifndef __STDC_FORMAT_MACROS | ||
29 | #define __STDC_FORMAT_MACROS 1 | ||
30 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy/x86-64/config.h b/meta/recipes-devtools/python/python-numpy/x86-64/config.h new file mode 100644 index 0000000000..0ce63b7d22 --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy/x86-64/config.h | |||
@@ -0,0 +1,139 @@ | |||
1 | #define HAVE_ENDIAN_H 1 | ||
2 | #define SIZEOF_PY_INTPTR_T 8 | ||
3 | #define SIZEOF_PY_LONG_LONG 8 | ||
4 | #define MATHLIB m | ||
5 | #define HAVE_SIN 1 | ||
6 | #define HAVE_COS 1 | ||
7 | #define HAVE_TAN 1 | ||
8 | #define HAVE_SINH 1 | ||
9 | #define HAVE_COSH 1 | ||
10 | #define HAVE_TANH 1 | ||
11 | #define HAVE_FABS 1 | ||
12 | #define HAVE_FLOOR 1 | ||
13 | #define HAVE_CEIL 1 | ||
14 | #define HAVE_SQRT 1 | ||
15 | #define HAVE_LOG10 1 | ||
16 | #define HAVE_LOG 1 | ||
17 | #define HAVE_EXP 1 | ||
18 | #define HAVE_ASIN 1 | ||
19 | #define HAVE_ACOS 1 | ||
20 | #define HAVE_ATAN 1 | ||
21 | #define HAVE_FMOD 1 | ||
22 | #define HAVE_MODF 1 | ||
23 | #define HAVE_FREXP 1 | ||
24 | #define HAVE_LDEXP 1 | ||
25 | #define HAVE_RINT 1 | ||
26 | #define HAVE_TRUNC 1 | ||
27 | #define HAVE_EXP2 1 | ||
28 | #define HAVE_LOG2 1 | ||
29 | #define HAVE_ATAN2 1 | ||
30 | #define HAVE_POW 1 | ||
31 | #define HAVE_NEXTAFTER 1 | ||
32 | #define HAVE_SINF 1 | ||
33 | #define HAVE_COSF 1 | ||
34 | #define HAVE_TANF 1 | ||
35 | #define HAVE_SINHF 1 | ||
36 | #define HAVE_COSHF 1 | ||
37 | #define HAVE_TANHF 1 | ||
38 | #define HAVE_FABSF 1 | ||
39 | #define HAVE_FLOORF 1 | ||
40 | #define HAVE_CEILF 1 | ||
41 | #define HAVE_RINTF 1 | ||
42 | #define HAVE_TRUNCF 1 | ||
43 | #define HAVE_SQRTF 1 | ||
44 | #define HAVE_LOG10F 1 | ||
45 | #define HAVE_LOGF 1 | ||
46 | #define HAVE_LOG1PF 1 | ||
47 | #define HAVE_EXPF 1 | ||
48 | #define HAVE_EXPM1F 1 | ||
49 | #define HAVE_ASINF 1 | ||
50 | #define HAVE_ACOSF 1 | ||
51 | #define HAVE_ATANF 1 | ||
52 | #define HAVE_ASINHF 1 | ||
53 | #define HAVE_ACOSHF 1 | ||
54 | #define HAVE_ATANHF 1 | ||
55 | #define HAVE_HYPOTF 1 | ||
56 | #define HAVE_ATAN2F 1 | ||
57 | #define HAVE_POWF 1 | ||
58 | #define HAVE_FMODF 1 | ||
59 | #define HAVE_MODFF 1 | ||
60 | #define HAVE_FREXPF 1 | ||
61 | #define HAVE_LDEXPF 1 | ||
62 | #define HAVE_EXP2F 1 | ||
63 | #define HAVE_LOG2F 1 | ||
64 | #define HAVE_COPYSIGNF 1 | ||
65 | #define HAVE_NEXTAFTERF 1 | ||
66 | #define HAVE_SINL 1 | ||
67 | #define HAVE_COSL 1 | ||
68 | #define HAVE_TANL 1 | ||
69 | #define HAVE_SINHL 1 | ||
70 | #define HAVE_COSHL 1 | ||
71 | #define HAVE_TANHL 1 | ||
72 | #define HAVE_FABSL 1 | ||
73 | #define HAVE_FLOORL 1 | ||
74 | #define HAVE_CEILL 1 | ||
75 | #define HAVE_RINTL 1 | ||
76 | #define HAVE_TRUNCL 1 | ||
77 | #define HAVE_SQRTL 1 | ||
78 | #define HAVE_LOG10L 1 | ||
79 | #define HAVE_LOGL 1 | ||
80 | #define HAVE_LOG1PL 1 | ||
81 | #define HAVE_EXPL 1 | ||
82 | #define HAVE_EXPM1L 1 | ||
83 | #define HAVE_ASINL 1 | ||
84 | #define HAVE_ACOSL 1 | ||
85 | #define HAVE_ATANL 1 | ||
86 | #define HAVE_ASINHL 1 | ||
87 | #define HAVE_ACOSHL 1 | ||
88 | #define HAVE_ATANHL 1 | ||
89 | #define HAVE_HYPOTL 1 | ||
90 | #define HAVE_ATAN2L 1 | ||
91 | #define HAVE_POWL 1 | ||
92 | #define HAVE_FMODL 1 | ||
93 | #define HAVE_MODFL 1 | ||
94 | #define HAVE_FREXPL 1 | ||
95 | #define HAVE_LDEXPL 1 | ||
96 | #define HAVE_EXP2L 1 | ||
97 | #define HAVE_LOG2L 1 | ||
98 | #define HAVE_COPYSIGNL 1 | ||
99 | #define HAVE_NEXTAFTERL 1 | ||
100 | #define HAVE_DECL_SIGNBIT | ||
101 | #define HAVE_COMPLEX_H 1 | ||
102 | #define HAVE_CREAL 1 | ||
103 | #define HAVE_CIMAG 1 | ||
104 | #define HAVE_CABS 1 | ||
105 | #define HAVE_CARG 1 | ||
106 | #define HAVE_CEXP 1 | ||
107 | #define HAVE_CSQRT 1 | ||
108 | #define HAVE_CLOG 1 | ||
109 | #define HAVE_CCOS 1 | ||
110 | #define HAVE_CSIN 1 | ||
111 | #define HAVE_CPOW 1 | ||
112 | #define HAVE_CREALF 1 | ||
113 | #define HAVE_CIMAGF 1 | ||
114 | #define HAVE_CABSF 1 | ||
115 | #define HAVE_CARGF 1 | ||
116 | #define HAVE_CEXPF 1 | ||
117 | #define HAVE_CSQRTF 1 | ||
118 | #define HAVE_CLOGF 1 | ||
119 | #define HAVE_CCOSF 1 | ||
120 | #define HAVE_CSINF 1 | ||
121 | #define HAVE_CPOWF 1 | ||
122 | #define HAVE_CREALL 1 | ||
123 | #define HAVE_CIMAGL 1 | ||
124 | #define HAVE_CABSL 1 | ||
125 | #define HAVE_CARGL 1 | ||
126 | #define HAVE_CEXPL 1 | ||
127 | #define HAVE_CSQRTL 1 | ||
128 | #define HAVE_CLOGL 1 | ||
129 | #define HAVE_CCOSL 1 | ||
130 | #define HAVE_CSINL 1 | ||
131 | #define HAVE_CPOWL 1 | ||
132 | #define HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE 1 | ||
133 | #ifndef __cplusplus | ||
134 | /* #undef inline */ | ||
135 | #endif | ||
136 | |||
137 | #ifndef _NPY_NPY_CONFIG_H_ | ||
138 | #error config.h should never be included directly, include npy_config.h instead | ||
139 | #endif | ||
diff --git a/meta/recipes-devtools/python/python-numpy_1.7.0.bb b/meta/recipes-devtools/python/python-numpy_1.7.0.bb new file mode 100644 index 0000000000..04cb2f183f --- /dev/null +++ b/meta/recipes-devtools/python/python-numpy_1.7.0.bb | |||
@@ -0,0 +1,78 @@ | |||
1 | DESCRIPTION = "A sophisticated Numeric Processing Package for Python" | ||
2 | SECTION = "devel/python" | ||
3 | LICENSE = "PSF" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f87832d854acbade6e9f5c601c8b30b1" | ||
5 | PR = "r1" | ||
6 | |||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/numpy/numpy-${PV}.tar.gz \ | ||
8 | ${CONFIGFILESURI} " | ||
9 | |||
10 | CONFIGFILESURI ?= "" | ||
11 | |||
12 | CONFIGFILESURI_aarch64 = " \ | ||
13 | file://config.h \ | ||
14 | file://_numpyconfig.h \ | ||
15 | " | ||
16 | CONFIGFILESURI_arm = " \ | ||
17 | file://config.h \ | ||
18 | file://numpyconfig.h \ | ||
19 | " | ||
20 | CONFIGFILESURI_armeb = " \ | ||
21 | file://config.h \ | ||
22 | file://numpyconfig.h \ | ||
23 | " | ||
24 | CONFIGFILESURI_mipsel = " \ | ||
25 | file://config.h \ | ||
26 | file://numpyconfig.h \ | ||
27 | " | ||
28 | CONFIGFILESURI_i586 = " \ | ||
29 | file://config.h \ | ||
30 | file://numpyconfig.h \ | ||
31 | " | ||
32 | CONFIGFILESURI_x86-64 = " \ | ||
33 | file://config.h \ | ||
34 | file://_numpyconfig.h \ | ||
35 | " | ||
36 | |||
37 | S = "${WORKDIR}/numpy-${PV}" | ||
38 | |||
39 | inherit distutils | ||
40 | |||
41 | # Make the build fail and replace *config.h with proper one | ||
42 | # This is a ugly, ugly hack - Koen | ||
43 | do_compile_prepend_class-target() { | ||
44 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | ||
45 | ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \ | ||
46 | true | ||
47 | cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/ | ||
48 | } | ||
49 | |||
50 | FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a" | ||
51 | |||
52 | SRC_URI[md5sum] = "4fa54e40b6a243416f0248123b6ec332" | ||
53 | SRC_URI[sha256sum] = "f4fa70b7edbab65ee6432eb63743f5489f1919c614632b20b2fb45aa7e682ac6" | ||
54 | |||
55 | # install what is needed for numpy.test() | ||
56 | RDEPENDS_${PN} = "python-unittest \ | ||
57 | python-difflib \ | ||
58 | python-pprint \ | ||
59 | python-pickle \ | ||
60 | python-shell \ | ||
61 | python-nose \ | ||
62 | python-doctest \ | ||
63 | python-datetime \ | ||
64 | python-distutils \ | ||
65 | python-misc \ | ||
66 | python-mmap \ | ||
67 | python-netclient \ | ||
68 | python-numbers \ | ||
69 | python-pydoc \ | ||
70 | python-pkgutil \ | ||
71 | python-email \ | ||
72 | python-subprocess \ | ||
73 | python-compression \ | ||
74 | " | ||
75 | |||
76 | RDEPENDS_${PN}_class-native = "" | ||
77 | |||
78 | BBCLASSEXTEND = "native nativesdk" | ||