Merge pull request #8273 from jefferyto/python-pkg-setup-dir

python,python3: Add PYTHON_PKG_SETUP_DIR
This commit is contained in:
Hannu Nyman 2019-02-23 19:40:03 +02:00 committed by GitHub
commit 5345d9e49f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -114,14 +114,16 @@ define Build/Compile/PyMod
$(3))
endef
PYTHON_PKG_SETUP_ARGS:=--single-version-externally-managed
PYTHON_PKG_SETUP_VARS:=
PYTHON_PKG_SETUP_DIR ?=
PYTHON_PKG_SETUP_ARGS ?= --single-version-externally-managed
PYTHON_PKG_SETUP_VARS ?=
define PyBuild/Compile/Default
$(foreach pkg,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS),
$(call host_python_pip_install_host,$(pkg))
)
$(call Build/Compile/PyMod,, \
$(call Build/Compile/PyMod, \
$(PYTHON_PKG_SETUP_DIR), \
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
$(PYTHON_PKG_SETUP_ARGS), \
$(PYTHON_PKG_SETUP_VARS) \

View File

@ -113,14 +113,16 @@ define Build/Compile/Py3Mod
$(3))
endef
PYTHON3_PKG_SETUP_ARGS:=--single-version-externally-managed
PYTHON3_PKG_SETUP_VARS:=
PYTHON3_PKG_SETUP_DIR ?=
PYTHON3_PKG_SETUP_ARGS ?= --single-version-externally-managed
PYTHON3_PKG_SETUP_VARS ?=
define Py3Build/Compile/Default
$(foreach pkg,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
$(call host_python3_pip_install_host,$(pkg))
)
$(call Build/Compile/Py3Mod,, \
$(call Build/Compile/Py3Mod, \
$(PYTHON3_PKG_SETUP_DIR), \
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
$(PYTHON3_PKG_SETUP_ARGS), \
$(PYTHON3_PKG_SETUP_VARS) \