mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 17:41:20 +00:00
Merge pull request #5457 from jefferyto/python-pkg-setup-args-vars
python,python3: add vars to customize setup arguments / variables
This commit is contained in:
@@ -115,13 +115,17 @@ define Build/Compile/PyMod
|
|||||||
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
PYTHON_PKG_SETUP_ARGS:=--single-version-externally-managed
|
||||||
|
PYTHON_PKG_SETUP_VARS:=
|
||||||
|
|
||||||
define PyBuild/Compile/Default
|
define PyBuild/Compile/Default
|
||||||
$(foreach pkg,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS),
|
$(foreach pkg,$(HOST_PYTHON_PACKAGE_BUILD_DEPENDS),
|
||||||
$(call host_python_pip_install_host,$(pkg))
|
$(call host_python_pip_install_host,$(pkg))
|
||||||
)
|
)
|
||||||
$(call Build/Compile/PyMod,, \
|
$(call Build/Compile/PyMod,, \
|
||||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||||
--single-version-externally-managed \
|
$(PYTHON_PKG_SETUP_ARGS), \
|
||||||
|
$(PYTHON_PKG_SETUP_VARS) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
@@ -114,13 +114,17 @@ define Build/Compile/Py3Mod
|
|||||||
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
find $(PKG_INSTALL_DIR) -name "*\.exe" | xargs rm -f
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
PYTHON3_PKG_SETUP_ARGS:=--single-version-externally-managed
|
||||||
|
PYTHON3_PKG_SETUP_VARS:=
|
||||||
|
|
||||||
define Py3Build/Compile/Default
|
define Py3Build/Compile/Default
|
||||||
$(foreach pkg,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
|
$(foreach pkg,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
|
||||||
$(call host_python3_pip_install_host,$(pkg))
|
$(call host_python3_pip_install_host,$(pkg))
|
||||||
)
|
)
|
||||||
$(call Build/Compile/Py3Mod,, \
|
$(call Build/Compile/Py3Mod,, \
|
||||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||||
--single-version-externally-managed \
|
$(PYTHON3_PKG_SETUP_ARGS), \
|
||||||
|
$(PYTHON3_PKG_SETUP_VARS) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user