Blame SOURCES/coreclr-build-python3.patch

2a59cf
From 7e0608fee5cacbf5bf7d0c3886e2fcb1a9d10754 Mon Sep 17 00:00:00 2001
2a59cf
From: Omair Majid <omajid@redhat.com>
2a59cf
Date: Wed, 9 Jan 2019 12:28:48 -0500
2a59cf
Subject: [PATCH] Support building with python3 on unix (#19356)
2a59cf
2a59cf
The windows build scripts try finding python in order of python3,
2a59cf
python2 and then python. The unix build scripts dont. They just try
2a59cf
python2 variants and then fail. This change makes brings them closer
2a59cf
together by letting users build using only python3.
2a59cf
---
2a59cf
 build.sh | 6 +++---
2a59cf
 1 file changed, 3 insertions(+), 3 deletions(-)
2a59cf
2a59cf
diff --git a/build.sh b/build.sh
2a59cf
index a0b1742effb..14452ad5ac5 100755
2a59cf
--- a/build.sh
2a59cf
+++ b/build.sh
2a59cf
@@ -7,9 +7,9 @@ export ghprbCommentBody=
2a59cf
 
2a59cf
 # resolve python-version to use
2a59cf
 if [ "$PYTHON" == "" ] ; then
2a59cf
-    if ! PYTHON=$(command -v python2.7 || command -v python2 || command -v python)
2a59cf
+    if ! PYTHON=$(command -v python3 || command -v python2 || command -v python)
2a59cf
     then
2a59cf
-       echo "Unable to locate build-dependency python2.x!" 1>&2
2a59cf
+       echo "Unable to locate build-dependency python!" 1>&2
2a59cf
        exit 1
2a59cf
     fi
2a59cf
 fi
2a59cf
@@ -17,7 +17,7 @@ fi
2a59cf
 # useful in case of explicitly set option.
2a59cf
 if ! command -v $PYTHON > /dev/null
2a59cf
 then
2a59cf
-   echo "Unable to locate build-dependency python2.x ($PYTHON)!" 1>&2
2a59cf
+   echo "Unable to locate build-dependency python ($PYTHON)!" 1>&2
2a59cf
    exit 1
2a59cf
 fi
2a59cf