]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make-dist: drop Python 2/3 autoselect 30739/head
authorNathan Cutler <ncutler@suse.com>
Fri, 27 Dec 2019 09:55:21 +0000 (10:55 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 14 Jan 2020 14:43:22 +0000 (15:43 +0100)
virtualenv will prefer Python 3 over Python 2 if both are available.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 249bf81a32ff6d7046e525b947718d49b2314c13)

make-dist

index 1bcad43920614f5d310b0678ed351c6ebf18aa08..d3829b105e8d09b09a54ea7d5b567ecba393806e 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -61,25 +61,11 @@ download_boost() {
     rm -rf src/boost
 }
 
-_python_autoselect() {
-  python_command=
-  for interpreter in python2.7 python3 ; do
-    type $interpreter > /dev/null 2>&1 || continue
-    python_command=$interpreter
-    break
-  done
-  if [ -z "$python_command" ] ; then
-    echo "Could not find a suitable python interpreter! Bailing out."
-    exit 1
-  fi
-  echo $python_command
-}
-
 build_dashboard_frontend() {
   CURR_DIR=`pwd`
   TEMP_DIR=`mktemp -d`
 
-  $CURR_DIR/src/tools/setup-virtualenv.sh --python=$(_python_autoselect) $TEMP_DIR
+  $CURR_DIR/src/tools/setup-virtualenv.sh $TEMP_DIR
   $TEMP_DIR/bin/pip install nodeenv
   $TEMP_DIR/bin/nodeenv -p --node=10.13.0
   cd src/pybind/mgr/dashboard/frontend