diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-08 19:31:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-10 13:07:37 +0000 |
commit | 9bafd512a401816a1c859dc227b0b518dd3309ac (patch) | |
tree | 7d5489ac25c2963edfdedcba49ddb7b70f72dd13 /meta | |
parent | c6aa831fe575d989ea4710a18ace4f9da551f055 (diff) | |
download | poky-9bafd512a401816a1c859dc227b0b518dd3309ac.tar.gz |
pip_install_wheel: generate the wheels in directory we control outside of S
Set the wheel distribution location, PIP_INSTALL_DIST_PATH, to a
directory under WORKDIR to enhance out-of-tree builds.
(From OE-Core rev: 8e7ae4246aa8dedd8a128c34450d4c1f60e2224a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/pip_install_wheel.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass index febcc8e445..954a6b750f 100644 --- a/meta/classes/pip_install_wheel.bbclass +++ b/meta/classes/pip_install_wheel.bbclass | |||
@@ -7,7 +7,12 @@ def guess_pip_install_package_name(d): | |||
7 | return name.replace('-', '_') | 7 | return name.replace('-', '_') |
8 | 8 | ||
9 | PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}" | 9 | PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}" |
10 | PIP_INSTALL_DIST_PATH ?= "${@d.getVar('SETUPTOOLS_SETUP_PATH') or d.getVar('B')}/dist" | 10 | |
11 | # The directory where wheels should be written too. Build classes | ||
12 | # will ideally [cleandirs] this but we don't do that here in case | ||
13 | # a recipe wants to install prebuilt wheels. | ||
14 | PIP_INSTALL_DIST_PATH ?= "${WORKDIR}/dist" | ||
15 | |||
11 | PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-*-*.whl" | 16 | PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-*-*.whl" |
12 | 17 | ||
13 | PIP_INSTALL_ARGS = "\ | 18 | PIP_INSTALL_ARGS = "\ |