[Toaster] [PATCH 1/9] bitbake: toaster: use python3 explicitly
Ed Bartosh
ed.bartosh at linux.intel.com
Mon Jun 6 09:01:04 PDT 2016
Explicitly used python3 as default python for oe builds
will continue to be python2.
[YOCTO #9584]
(Bitbake rev: fde5c962cb69a11b072d1f238c2371a5137d030d)
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bitbake/bin/toaster | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index be1bb9c..ad25c43 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -115,10 +115,10 @@ verify_prereq() {
exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/'
exp=$exp'import sys,django;version=django.get_version().split(".");'
exp=$exp'sys.exit(not (version \1 "\2".split(".") and version \3 "\4".split(".")))/p'
- if ! sed -n "$exp" $reqfile | python - ; then
+ if ! sed -n "$exp" $reqfile | python3 - ; then
req=`grep ^Django $reqfile`
echo "This program needs $req"
- echo "Please install with pip install -r $reqfile"
+ echo "Please install with pip3 install --user -r $reqfile"
return 2
fi
--
2.1.4
More information about the toaster
mailing list