Merge pull request #2115 from commodo/python2-fix-setuptools
python: fix HostPython again
This commit is contained in:
commit
b14411d5da
|
@ -11,22 +11,19 @@ HOST_PYTHON_PKG_DIR:=/usr/lib/python$(PYTHON_VERSION)/site-packages
|
||||||
|
|
||||||
HOST_PYTHONPATH:=$(HOST_PYTHON_LIB_DIR):$(STAGING_DIR_HOST)/$(HOST_PYTHON_PKG_DIR)
|
HOST_PYTHONPATH:=$(HOST_PYTHON_LIB_DIR):$(STAGING_DIR_HOST)/$(HOST_PYTHON_PKG_DIR)
|
||||||
define HostPython
|
define HostPython
|
||||||
ifeq ($(strip $(3)),HOST)
|
if [ "$(strip $(3))" == "HOST" ]; then \
|
||||||
LOCAL_PYTHONPATH:=$(HOST_PYTHONPATH)
|
export PYTHONPATH:=$(HOST_PYTHONPATH); \
|
||||||
LOCAL_STAGING_DIR:=$(STAGING_DIR_HOST)
|
export _python_sysroot="$(STAGING_DIR_HOST)/usr"; \
|
||||||
else
|
else \
|
||||||
LOCAL_PYTHONPATH:=$(PYTHONPATH)
|
exort PYTHONPATH:=$(PYTHONPATH); \
|
||||||
LOCAL_STAGING_DIR:=$(STAGING_DIR)
|
export _python_sysroot:=$(STAGING_DIR)/usr; \
|
||||||
endif
|
fi; \
|
||||||
( export PYTHONPATH="$(LOCAL_PYTHONPATH)"; \
|
|
||||||
export PYTHONOPTIMIZE=""; \
|
export PYTHONOPTIMIZE=""; \
|
||||||
export PYTHONDONTWRITEBYTECODE=1; \
|
export PYTHONDONTWRITEBYTECODE=1; \
|
||||||
export _python_sysroot="$(LOCAL_STAGING_DIR)/usr"; \
|
|
||||||
export _python_prefix="/usr"; \
|
export _python_prefix="/usr"; \
|
||||||
export _python_exec_prefix="/usr"; \
|
export _python_exec_prefix="/usr"; \
|
||||||
$(1) \
|
$(1) \
|
||||||
$(HOST_PYTHON_BIN) $(2); \
|
$(HOST_PYTHON_BIN) $(2);
|
||||||
)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# These configure args are needed in detection of path to Python header files
|
# These configure args are needed in detection of path to Python header files
|
||||||
|
|
Loading…
Reference in New Issue