File tree Expand file tree Collapse file tree 2 files changed +61
-0
lines changed
Expand file tree Collapse file tree 2 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/core/src/multiarray/numpyos.c numpy-1.7.1/numpy/core/src/multiarray/numpyos.c
2+ --- numpy-1.7.1.orig/numpy/core/src/multiarray/numpyos.c 2013-04-07 07:04:05.000000000 +0200
3+ +++ numpy-1.7.1/numpy/core/src/multiarray/numpyos.c 2013-05-03 09:08:37.400626077 +0200
4+ @@ -171,7 +171,7 @@
5+ _change_decimal_from_locale_to_dot(char* buffer)
6+ {
7+ struct lconv *locale_data = localeconv();
8+ - const char *decimal_point = locale_data->decimal_point;
9+ + const char *decimal_point = ".";
10+
11+ if (decimal_point[0] != '.' || decimal_point[1] != 0) {
12+ size_t decimal_point_len = strlen(decimal_point);
13+ @@ -456,7 +456,7 @@
14+ NumPyOS_ascii_strtod(const char *s, char** endptr)
15+ {
16+ struct lconv *locale_data = localeconv();
17+ - const char *decimal_point = locale_data->decimal_point;
18+ + const char *decimal_point = ".";
19+ size_t decimal_point_len = strlen(decimal_point);
20+
21+ char buffer[FLOAT_FORMATBUFLEN+1];
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VERSION_numpy=1.7.1
4+ URL_numpy=http://pypi.python.org/packages/source/n/numpy/numpy-$VERSION_numpy .tar.gz
5+ DEPS_numpy=(python)
6+ MD5_numpy=0ab72b3b83528a7ae79c6df9042d61c6
7+ BUILD_numpy=$BUILD_PATH /numpy/$( get_directory $URL_numpy )
8+ RECIPE_numpy=$RECIPES_PATH /numpy
9+
10+ function prebuild_numpy() {
11+ cd $BUILD_numpy
12+
13+ if [ -f .patched ]; then
14+ return
15+ fi
16+
17+ try patch -p1 < $RECIPE_numpy /patches/fix-locale.patch
18+ touch .patched
19+ }
20+
21+ function build_numpy() {
22+
23+ if [ -d " $BUILD_PATH /python-install/lib/python2.7/site-packages/numpy" ]; then
24+ return
25+ fi
26+
27+ cd $BUILD_numpy
28+
29+ push_arm
30+
31+ try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
32+ try find build/lib.* -name " *.o" -exec $STRIP {} \;
33+ try $BUILD_PATH /python-install/bin/python.host setup.py install -O2
34+
35+ pop_arm
36+ }
37+
38+ function postbuild_numpy() {
39+ true
40+ }
You can’t perform that action at this time.
0 commit comments