summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-numpy/trycompile.diff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-01-14 15:19:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-14 17:03:56 +0000
commit4ec992938a65eb656539c3f5974100b04f752273 (patch)
tree7bd5b84708d0cea2e384e68506451abbe9b9d65d /meta/recipes-devtools/python/python-numpy/trycompile.diff
parent7282635343e0ccf7a82ffdb35905bdc2db6093d3 (diff)
downloadpoky-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/python-numpy/trycompile.diff')
-rw-r--r--meta/recipes-devtools/python/python-numpy/trycompile.diff33
1 files changed, 33 insertions, 0 deletions
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. "\