mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 18:09:40 +01:00
There's already a variable for "the host python to use during the build when cross-compiling", so there's no need to add another. (From OE-Core rev: 1ede9777478469fbdb633782e0ffb2ae68b1a578) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
2.2 KiB
Diff
50 lines
2.2 KiB
Diff
We need to ensure our host tools get run during build, not the freshly
|
|
built cross-tools (this will not work), so we introduce HOSTPYTHON and HOSTPGEN.
|
|
|
|
Upstream-Status: Inappropriate [embedded specific]
|
|
|
|
Signed-off-by: Michael 'Mickey' Lauer <mickey@vanille-media.de>
|
|
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
|
|
|
Rebased for python-2.7.9
|
|
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
|
|
|
|
Rebased for python-2.7.14
|
|
Signed-off-by: Derek Straka <derek@asterius.io>
|
|
|
|
Index: Python-2.7.13/Makefile.pre.in
|
|
===================================================================
|
|
--- Python-2.7.13.orig/Makefile.pre.in
|
|
+++ Python-2.7.13/Makefile.pre.in
|
|
@@ -512,7 +513,7 @@ $(BUILDPYTHON): Modules/python.o $(LIBRA
|
|
$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
|
|
|
|
platform: $(BUILDPYTHON) pybuilddir.txt
|
|
- $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
|
|
+ $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
|
|
|
|
# Create build directory and generate the sysconfig build-time data there.
|
|
# pybuilddir.txt contains the name of the build dir and is used for
|
|
Index: Python-2.7.13/setup.py
|
|
===================================================================
|
|
--- Python-2.7.13.orig/setup.py
|
|
+++ Python-2.7.13/setup.py
|
|
@@ -350,6 +350,7 @@ class PyBuildExt(build_ext):
|
|
self.failed.append(ext.name)
|
|
self.announce('*** WARNING: renaming "%s" since importing it'
|
|
' failed: %s' % (ext.name, why), level=3)
|
|
+ return
|
|
assert not self.inplace
|
|
basename, tail = os.path.splitext(ext_filename)
|
|
newname = basename + "_failed" + tail
|
|
@@ -574,6 +575,9 @@ class PyBuildExt(build_ext):
|
|
|
|
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
|
|
|
+ lib_dirs = [ os.getenv("STAGING_LIBDIR"), os.getenv("STAGING_BASELIBDIR") ]
|
|
+ inc_dirs = [ os.getenv("STAGING_INCDIR") ]
|
|
+
|
|
#
|
|
# The following modules are all pretty straightforward, and compile
|
|
# on pretty much any POSIXish platform.
|