Skip to contentSkip to conversation

toaster: bin Use python 3 for our django modules check

PATCH New Michael Wood 1 participant 1 message Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: bin Use python 3 for our django modules check

Explicitly use python3 so that the modules for python3 are checked.

---
 bitbake/bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/bin/toaster +1 -1
index be1bb9c..e3a0dae 100755
@@ -115,7 +115,7 @@ 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"
Signature · 1 line
2.7.4