diff options
| author | champtar <champetier.etienne@gmail.com> | 2017-07-19 11:46:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-19 11:46:21 -0700 |
| commit | bd8ccf184f66b8f866eac8808ba8c12be86f60c7 (patch) | |
| tree | 1195a4450c9012c52c1dd22659a15ea030f0aa9e /lang/python/python3/files/python3-host.mk | |
| parent | c188fcfb7c4fdd9f715db872f038f4ff3bf00404 (diff) | |
| parent | 612c53fc6c3d9ba2a57f7329baf055f1d59a9246 (diff) | |
Merge pull request #4598 from commodo/fix-python-builds
python,python3: try to stabilize host builds
Diffstat (limited to 'lang/python/python3/files/python3-host.mk')
| -rw-r--r-- | lang/python/python3/files/python3-host.mk | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lang/python/python3/files/python3-host.mk b/lang/python/python3/files/python3-host.mk index 3abf6aa5f..96bbc19cc 100644 --- a/lang/python/python3/files/python3-host.mk +++ b/lang/python/python3/files/python3-host.mk @@ -60,6 +60,19 @@ define Build/Compile/HostPy3RunHost ) endef +# Note: I shamelessly copied this from Yousong's logic (from python-packages); +HOST_PYTHON3_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON3_VERSION) +define host_python3_pip_install + $(HOST_PYTHON3_PIP) install \ + --root=$(1) \ + --prefix=$(2) \ + --ignore-installed \ + $(3) +endef + +define host_python3_pip_install_host +$(call host_python3_pip_install,$(STAGING_DIR_HOSTPKG),"",$(1)) +endef # $(1) => build subdir # $(2) => additional arguments to setup.py @@ -71,11 +84,4 @@ define Build/Compile/HostPy3Mod $(3)) endef -define HostPy3/Compile/Default - $(call Build/Compile/HostPy3Mod,,\ - install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \ - --single-version-externally-managed \ - ) -endef - endif # __python3_host_mk_inc |
