PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
define HostPython
if [ "$(strip $(3))" == "HOST" ]; then \
export PYTHONPATH="$(HOST_PYTHONPATH)"; \
- export _python_sysroot="$(STAGING_DIR_HOST)/usr"; \
+ export _python_sysroot="$(STAGING_DIR_HOST)"; \
else \
export PYTHONPATH="$(PYTHONPATH)"; \
- export _python_sysroot="$(STAGING_DIR)/usr"; \
+ export _python_sysroot="$(STAGING_DIR)"; \
fi; \
export PYTHONOPTIMIZE=""; \
export PYTHONDONTWRITEBYTECODE=1; \
# These configure args are needed in detection of path to Python header files
# using autotools.
HOST_CONFIGURE_ARGS += \
- _python_sysroot="$(STAGING_DIR_HOST)/usr" \
+ _python_sysroot="$(STAGING_DIR_HOST)" \
_python_prefix="/usr" \
_python_exec_prefix="/usr"