Skip to content

Commit 3c77b92

Browse files
committed
Final numpy patch
1 parent 839930d commit 3c77b92

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

recipes/numpy/patches/ar.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
--- numpy/distutils/unixccompiler.orig.py 2015-02-01 17:38:21.000000000 +0100
2-
+++ numpy/distutils/unixccompiler.py 2015-07-08 17:21:05.742468485 +0200
1+
--- a/numpy/distutils/unixccompiler.py 2015-02-01 17:38:21.000000000 +0100
2+
+++ b/numpy/distutils/unixccompiler.py 2015-07-08 17:21:05.742468485 +0200
33
@@ -82,6 +82,8 @@
44
pass
55
self.mkpath(os.path.dirname(output_filename))
66
tmp_objects = objects + self.objects
7-
+ self.archiver[0]="$AR"
8-
+ print("#####Archiver: " + ', '.join(self.archiver) )
7+
+ from os import environ
8+
+ self.archiver[0] = 'arm-linux-androideabi-ar'
99
while tmp_objects:
1010
objects = tmp_objects[:50]
1111
tmp_objects = tmp_objects[50:]

recipes/numpy/patches/lib.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- numpy/linalg/setup.orig.py 2015-07-09 14:15:59.850853336 +0200
2-
+++ numpy/linalg/setup.py 2015-07-09 14:21:59.403889000 +0200
1+
--- a/numpy/linalg/setup.py 2015-07-09 14:15:59.850853336 +0200
2+
+++ b/numpy/linalg/setup.py 2015-07-09 14:21:59.403889000 +0200
33
@@ -37,7 +37,8 @@
44
config.add_extension('lapack_lite',
55
sources = [get_lapack_lite_sources],
@@ -19,8 +19,8 @@
1919
)
2020

2121
return config
22-
--- numpy/fft/setup.orig.py 2015-07-09 14:35:22.299888028 +0200
23-
+++ numpy/fft/setup.py 2015-07-09 14:33:54.858392578 +0200
22+
--- a/numpy/fft/setup.py 2015-07-09 14:35:22.299888028 +0200
23+
+++ b/numpy/fft/setup.py 2015-07-09 14:33:54.858392578 +0200
2424
@@ -9,7 +9,8 @@
2525

2626
# Configure fftpack_lite
@@ -31,8 +31,8 @@
3131
)
3232

3333

34-
--- numpy/random/setup.orig.py 2015-07-09 14:44:41.105174826 +0200
35-
+++ numpy/random/setup.py 2015-07-09 14:46:08.592679877 +0200
34+
--- a/numpy/random/setup.orig.py 2015-07-09 14:44:41.105174826 +0200
35+
+++ b/numpy/random/setup.py 2015-07-09 14:46:08.592679877 +0200
3636
@@ -38,7 +38,7 @@
3737
if needs_mingw_ftime_workaround():
3838
defs.append(("NPY_NEEDS_MINGW_TIME_WORKAROUND", None))
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
2+
index a050430..471e958 100644
3+
--- a/numpy/distutils/system_info.py
4+
+++ b/numpy/distutils/system_info.py
5+
@@ -610,6 +610,7 @@ class system_info:
6+
return self.get_paths(self.section, key)
7+
8+
def get_libs(self, key, default):
9+
+ return []
10+
try:
11+
libs = self.cp.get(self.section, key)
12+
except NoOptionError:

recipes/numpy/recipe.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ function prebuild_numpy() {
1515
fi
1616

1717
try patch -p1 < $RECIPE_numpy/patches/fix-numpy.patch
18-
try patch -p0 < $RECIPE_numpy/patches/ar.patch
19-
try patch -p0 < $RECIPE_numpy/patches/lib.patch
18+
try patch -p1 < $RECIPE_numpy/patches/ar.patch
19+
try patch -p1 < $RECIPE_numpy/patches/lib.patch
20+
try patch -p1 < $RECIPE_numpy/patches/prevent_libs_check.patch
2021
touch .patched
2122
}
2223

0 commit comments

Comments
 (0)