]> code.ossystems Code Review - openembedded-core.git/commitdiff
pip_install_wheel: Use --ignore-installed for pip
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Feb 2022 12:10:05 +0000 (12:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Feb 2022 15:06:46 +0000 (15:06 +0000)
Replace the use of --force-reinstall with --ignore-installed when running pip
install. It can detect currently installed modules in the wrong environment and
try to remove them currently which is not what is desired. Ignoring them is the
correct thing to do.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pip_install_wheel.bbclass

index 2f21a8ee56f814ce6c17d5546327c2f166cc36be..8a848c0ebab3300ef55cdd3236570e8a911cda74 100644 (file)
@@ -6,7 +6,7 @@ PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-${PV}-*.whl"
 
 PIP_INSTALL_ARGS ?= "\
     -vvvv \
-    --force-reinstall \
+    --ignore-installed \
     --no-cache \
     --no-deps \
     --no-index \