diff mbox

[PATCHv1,05/26] pkg-python: simplifications after the Python 2.x bump

Message ID 1392324555-29246-6-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit 6f8c85569739492ffc8c3b1e04b4ae007e5cb02a
Headers show

Commit Message

Thomas Petazzoni Feb. 13, 2014, 8:48 p.m. UTC
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>
---
 package/pkg-python.mk | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Comments

Peter Korsgaard Feb. 14, 2014, 8:59 p.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > 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>

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/pkg-python.mk b/package/pkg-python.mk
index b4de56d..9c8767f 100644
--- a/package/pkg-python.mk
+++ b/package/pkg-python.mk
@@ -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