pkg-python: simplifications after the Python 2.x bump
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 13 Feb 2014 20:48:54 +0000 (21:48 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 14 Feb 2014 20:50:59 +0000 (21:50 +0100)
Thanks to the Python 2.x bump, it is no longer needed to pass
PYTHONCPREFIX, and CROSS_COMPILING when building third-party Python
modules.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-python.mk

index c423f7a5e225ef85ed453aa2580922156183ba12..a8628953bde2ba539ed8da4d5c6ad20f6d0771e3 100644 (file)
@@ -27,7 +27,6 @@ PKG_PYTHON_DISTUTILS_ENV = \
        CFLAGS="$(TARGET_CFLAGS)" \
        LDFLAGS="$(TARGET_LDFLAGS)" \
        LDSHARED="$(TARGET_CROSS)gcc -shared" \
-       CROSS_COMPILING=yes \
        PYTHONPATH="$(PYTHON_PATH)" \
        _python_sysroot=$(STAGING_DIR) \
        _python_prefix=/usr \
@@ -50,8 +49,6 @@ HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPT = \
 PKG_PYTHON_SETUPTOOLS_ENV = \
        PATH="$(TARGET_PATH)" \
        PYTHONPATH="$(PYTHON_PATH)" \
-       PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
-       CROSS_COMPILING=yes \
        _python_sysroot=$(STAGING_DIR) \
        _python_prefix=/usr \
        _python_exec_prefix=/usr
@@ -64,8 +61,7 @@ PKG_PYTHON_SETUPTOOLS_INSTALL_OPT = \
 
 # Host setuptools-based packages
 HOST_PKG_PYTHON_SETUPTOOLS_ENV = \
-       PATH="$(HOST_PATH)" \
-       PYTHONXCPREFIX="$(HOST_DIR)/usr/"
+       PATH="$(HOST_PATH)"
 
 HOST_PKG_PYTHON_SETUPTOOLS_INSTALL_OPT = \
        --prefix=$(HOST_DIR)/usr