diff options
| author | Florian Fieber <florian@florianfieber.de> | 2015-11-18 17:57:16 +0100 |
|---|---|---|
| committer | Florian Fieber <florian@florianfieber.de> | 2015-11-19 18:26:23 +0100 |
| commit | 877971ec4c5d709e9a12831281ce5037e2435c36 (patch) | |
| tree | aec892a4c456d062bdcb5bc2c8efeaad3a1c5d11 /lang/python3/files/python3-package.mk | |
| parent | b011c10eb5b35e56c21b40f14be403c52e199de8 (diff) | |
python3: Port changes from python-package.mk to python3-package.mk
- Add configure arguments for distutils path detection
- Add '_python_*' env vars to host python
Signed-off-by: Florian Fieber <florian@florianfieber.de>
Diffstat (limited to 'lang/python3/files/python3-package.mk')
| -rw-r--r-- | lang/python3/files/python3-package.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk index 37a023eb0..4fd3191eb 100644 --- a/lang/python3/files/python3-package.mk +++ b/lang/python3/files/python3-package.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2014 OpenWrt.org +# Copyright (C) 2007-2015 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -28,11 +28,21 @@ define HostPython3 ( export PYTHONPATH="$(PYTHON3PATH)"; \ export PYTHONOPTIMIZE=""; \ export PYTHONDONTWRITEBYTECODE=1; \ + export _python_sysroot="$(STAGING_DIR)"; \ + export _python_prefix="/usr"; \ + export _python_exec_prefix="/usr"; \ $(1) \ $(HOST_PYTHON3_BIN) $(2); \ ) endef +# These configure args are needed in detection of path to Python header files +# using autotools. +CONFIGURE_ARGS += \ + _python_sysroot="$(STAGING_DIR)" \ + _python_prefix="/usr" \ + _python_exec_prefix="/usr" + PKG_USE_MIPS16:=0 # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16 # flags are inherited from the Python base package (via sysconfig module) |
