From b70b978cc61bdd6fcdc7f8f7bae8ee3ef16baf4a Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sat, 5 Mar 2016 02:09:05 +0800 Subject: python: use default host build prefix, remove cross-compile workarounds for host The sets host Python's prefix and exec-prefix to the same value ($(STAGING_DIR)/host for packages, as currently defined in include/host-build.mk), which avoids the case where pyconfig.h is not in the same location as Python's other header files (see https://bugs.python.org/issue896330). This also removes some cross compilation workarounds (_python_sysroot/prefix/exec_prefix, disabling byte-compilation, __PYVENV_LAUNCHER__) that are not necessary when compiling packages for host. Signed-off-by: Jeffery To --- lang/python/files/python-package.mk | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lang/python/files/python-package.mk') diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index e8c049224..1f6771845 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2015 OpenWrt.org +# Copyright (C) 2006-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -17,9 +17,6 @@ PYTHON_PKG_DIR:=/usr/lib/python$(PYTHON_VERSION)/site-packages PYTHON:=python$(PYTHON_VERSION) -HOST_PYTHON_LIB_DIR:=$(STAGING_DIR)/host/usr/lib/python$(PYTHON_VERSION) -HOST_PYTHON_BIN:=$(STAGING_DIR)/host/bin/python2 - PYTHONPATH:=$(PYTHON_LIB_DIR):$(STAGING_DIR)/$(PYTHON_PKG_DIR):$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) # These configure args are needed in detection of path to Python header files -- cgit