mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 03:44:31 +04:00
python-setuptools,python-pip: Change prefix to /usr
This changes the --prefix option, passed to host pip when "installing" target setuptools and pip, to /usr, in case the prefix is recorded in the packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -179,9 +179,10 @@ define Build/Compile/python3-setuptools
|
||||
--cache-dir "$(DL_DIR)/pip-cache" \
|
||||
install \
|
||||
--ignore-installed \
|
||||
--root=$(PKG_BUILD_DIR)/install-setuptools --prefix=. \
|
||||
--root=$(PKG_BUILD_DIR)/install-setuptools \
|
||||
--prefix=/usr \
|
||||
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/setuptools-$(PYTHON3_SETUPTOOLS_VERSION)-py2.py3-none-any.whl
|
||||
$(call PatchDir,$(PKG_BUILD_DIR)/install-setuptools/lib/python$(PYTHON3_VERSION)/site-packages,./patches-setuptools,)
|
||||
$(call PatchDir,$(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages,./patches-setuptools,)
|
||||
endef
|
||||
endif # CONFIG_PACKAGE_python3-setuptools
|
||||
|
||||
@@ -192,9 +193,10 @@ define Build/Compile/python3-pip
|
||||
--cache-dir "$(DL_DIR)/pip-cache" \
|
||||
install \
|
||||
--ignore-installed \
|
||||
--root=$(PKG_BUILD_DIR)/install-pip --prefix=. \
|
||||
--root=$(PKG_BUILD_DIR)/install-pip \
|
||||
--prefix=/usr \
|
||||
$(PKG_BUILD_DIR)/Lib/ensurepip/_bundled/pip-$(PYTHON3_PIP_VERSION)-py2.py3-none-any.whl
|
||||
$(call PatchDir,$(PKG_BUILD_DIR)/install-pip/lib/python$(PYTHON3_VERSION)/site-packages,./patches-pip,)
|
||||
$(call PatchDir,$(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages,./patches-pip,)
|
||||
endef
|
||||
endif # CONFIG_PACKAGE_python3-pip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user