diff options
| author | Hannu Nyman <hannu.nyman@iki.fi> | 2019-05-30 11:10:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-30 11:10:23 +0300 |
| commit | b7e689aefdd6f785909349e80e03f4053ac7a458 (patch) | |
| tree | 5e671569874f666728b89e4cd90e526cd74d0404 /lang/python/python3/Makefile | |
| parent | 9d65877b5cde2372d325eeb69290d2fee220abc4 (diff) | |
| parent | b8e7a197db135c2b8749ed3c7bf94b3e712e1283 (diff) | |
Merge pull request #9101 from jefferyto/python-setuptools-pip-install
python-setuptools,python-pip: Installation changes
Diffstat (limited to 'lang/python/python3/Makefile')
| -rw-r--r-- | lang/python/python3/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 5b3dcf355..e9468c97f 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -174,21 +174,29 @@ endef ifdef CONFIG_PACKAGE_python3-setuptools define Build/Compile/python3-setuptools - $(STAGING_DIR_HOSTPKG)/bin/pip3 install \ + $(HOST_PYTHON3_PIP) \ + --disable-pip-version-check \ + --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 ifdef CONFIG_PACKAGE_python3-pip define Build/Compile/python3-pip - $(STAGING_DIR_HOSTPKG)/bin/pip3 install \ + $(HOST_PYTHON3_PIP) \ + --disable-pip-version-check \ + --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 |
