summaryrefslogtreecommitdiff
path: root/lang/python3/files/python3-package.mk
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-12-07 13:46:08 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2015-12-07 13:46:08 +0200
commit0fee8f5cb7ecdd6dc04cd6e3ac99e975fe156111 (patch)
tree62339e27afe82fd9e3df27a23cada3e1671e8298 /lang/python3/files/python3-package.mk
parent98215f762ec724fe7ea652e653374340dbf19bb6 (diff)
parentda4d2e49dbbed514ed9a725f0fcf567dad9b8d74 (diff)
Merge pull request #1982 from FlorianFieber/python3
Python3: Add python3-pip, python3-setuptools and their dependencies
Diffstat (limited to 'lang/python3/files/python3-package.mk')
-rw-r--r--lang/python3/files/python3-package.mk12
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)