mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Upgrades python-numpy and python3-numpy to 1.11.0, Drops using distutils class, to use setuptools class instead, this fixes a problem where after compilation the package was created as an egg, see YOCTO #8673 Fixes source location for both packages and also adds a new patch to fix the shebang on the f2py script, see YOCTO #9729 (From OE-Core rev: dd756bb8fdff676dba312e38ebc90c4c89dfe855) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
Upstream-Status: Inappropriate [embedded specific]
|
|
|
|
Avoids using python from the HOSTs native sysroot for f2py,
|
|
uses TARGET env python instead.
|
|
|
|
Signed-Off-By: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
|
|
|
|
Index: numpy-1.11.0/numpy/f2py/setup.py
|
|
===================================================================
|
|
--- numpy-1.11.0.orig/numpy/f2py/setup.py
|
|
+++ numpy-1.11.0/numpy/f2py/setup.py
|
|
@@ -37,10 +37,13 @@ def _get_f2py_shebang():
|
|
should be ``#!python`` rather than ``#!`` followed by the contents of
|
|
``sys.executable``.
|
|
"""
|
|
- if set(('bdist_wheel', 'bdist_egg', 'bdist_wininst',
|
|
- 'bdist_rpm')).intersection(sys.argv):
|
|
- return '#!python'
|
|
- return '#!' + sys.executable
|
|
+ #if set(('bdist_wheel', 'bdist_egg', 'bdist_wininst',
|
|
+ # 'bdist_rpm')).intersection(sys.argv):
|
|
+ # return '#!python'
|
|
+ #return '#!' + sys.executable
|
|
+
|
|
+ # On OE, we need to avoid using the HOSTs python-native, we return env python instead
|
|
+ return '#!/usr/bin/env python'
|
|
|
|
|
|
def configuration(parent_package='', top_path=None):
|