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 10:57:35.812501674 +0200
4
- @@ -170,8 +170,7 @@
1
+ diff --git a/numpy/core/src/multiarray/numpyos.c b/numpy/core/src/multiarray/numpyos.c
2
+ index 44b32f4..378e199 100644
3
+ --- a/numpy/core/src/multiarray/numpyos.c
4
+ +++ b/numpy/core/src/multiarray/numpyos.c
5
+ @@ -165,8 +165,7 @@ ensure_decimal_point(char* buffer, size_t buf_size)
5
6
static void
6
- _change_decimal_from_locale_to_dot (char* buffer)
7
+ change_decimal_from_locale_to_dot (char* buffer)
7
8
{
8
9
- struct lconv *locale_data = localeconv();
9
10
- const char *decimal_point = locale_data->decimal_point;
10
11
+ const char *decimal_point = ".";
11
12
12
13
if (decimal_point[0] != '.' || decimal_point[1] != 0) {
13
14
size_t decimal_point_len = strlen(decimal_point);
14
- @@ -455 ,8 +454 ,7 @@
15
+ @@ -448 ,8 +447 ,7 @@ NumPyOS_ascii_strtod_plain(const char *s, char** endptr)
15
16
NPY_NO_EXPORT double
16
17
NumPyOS_ascii_strtod(const char *s, char** endptr)
17
18
{
@@ -21,40 +22,41 @@ diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/core/src/multia
21
22
size_t decimal_point_len = strlen(decimal_point);
22
23
23
24
char buffer[FLOAT_FORMATBUFLEN+1];
24
- diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig /numpy/core/src/private/npy_config.h numpy-1.7.1 /numpy/core/src/private/npy_config.h
25
- --- numpy-1.7.1.orig/numpy/core/src/private/npy_config.h 2013-04-07 07:04:05.000000000 +0200
26
- +++ numpy-1.7.1 /numpy/core/src/private/npy_config.h 2013-05-03 10:57:35.812501674 +0200
27
- @@ -41,4 +41,12 @@
28
- #define SIZEOF_PY_INTPTR_T 4
29
- #endif
25
+ diff --git a /numpy/core/src/private/npy_config.h b /numpy/core/src/private/npy_config.h
26
+ index f768c90..4e5d168 100644
27
+ --- a /numpy/core/src/private/npy_config.h
28
+ +++ b/numpy/core/src/private/npy_config.h
29
+ @@ -41,4 +41,10 @@
30
+ #undef HAVE_ATAN2
30
31
#endif
31
- +
32
- + /* Android only
33
- + */
32
+
33
+ + /* Android only */
34
34
+ #ifdef ANDROID
35
35
+ #undef HAVE_LDEXPL
36
36
+ #undef HAVE_FREXPL
37
37
+ #endif
38
38
+
39
39
#endif
40
- diff -x build -x '*.pyc' -x '*.swp' -Naur numpy-1.7.1.orig/numpy/testing/__init__.py numpy-1.7.1/numpy/testing/__init__.py
41
- --- numpy-1.7.1.orig/numpy/testing/__init__.py 2013-04-07 07:04:05.000000000 +0200
42
- +++ numpy-1.7.1/numpy/testing/__init__.py 2013-05-03 11:09:29.316488099 +0200
43
- @@ -1,15 +1,7 @@
40
+ diff --git a/numpy/testing/__init__.py b/numpy/testing/__init__.py
41
+ index 258cbe9..ce4e0eb 100644
42
+ --- a/numpy/testing/__init__.py
43
+ +++ b/numpy/testing/__init__.py
44
+ @@ -1,16 +1,7 @@
44
45
- """Common test support for all numpy test scripts.
45
46
-
46
47
- This single module should provide all the common functionality for numpy tests
47
48
- in a single location, so that test scripts can just import it and work right
48
49
- away.
50
+ -
49
51
- """
52
+ - from __future__ import division, absolute_import, print_function
50
53
-
51
54
- from unittest import TestCase
52
55
-
53
- - import decorators as dec
54
- - from utils import *
55
- - from numpytest import *
56
- - from nosetester import NoseTester as Tester
57
- - from nosetester import run_module_suite
56
+ - from . import decorators as dec
57
+ - from .utils import *
58
+ - from .nosetester import NoseTester as Tester
59
+ - from .nosetester import run_module_suite
58
60
+ # fake tester, android don't have unittest
59
61
+ class Tester(object):
60
62
+ def test(self, *args, **kwargs):
0 commit comments