2
1

0002-configure-use-default-python-interpreter.patch 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From aca7abb537f5caf1c9f027cf65dd0f53fb664e73 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@gmail.com>
  3. Date: Tue, 26 May 2020 18:24:25 +0200
  4. Subject: [PATCH] configure: use default python interpreter
  5. Don't try to use python2 if available, use the python interpreter available
  6. in ouput/host/bin/python whatever the python version is.
  7. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  8. ---
  9. configure | 12 ------------
  10. 1 file changed, 12 deletions(-)
  11. diff --git a/configure b/configure
  12. index eeb8d081d34..6014a982f47 100755
  13. --- a/configure
  14. +++ b/configure
  15. @@ -2,16 +2,4 @@
  16. script="$(dirname $0)"/src/bootstrap/configure.py
  17. -try() {
  18. - cmd=$1
  19. - shift
  20. - T=$($cmd --version 2>/dev/null)
  21. - if [ $? -eq 0 ]; then
  22. - exec $cmd "$script" "$@"
  23. - fi
  24. -}
  25. -
  26. -try python2.7 "$@"
  27. -try python27 "$@"
  28. -try python2 "$@"
  29. exec python $script "$@"
  30. --
  31. 2.25.4