From 5214f4066a076860cea5f4a1888137552335b2b4 Mon Sep 17 00:00:00 2001 From: Popfido Date: Fri, 4 May 2018 17:44:24 +0800 Subject: [PATCH] fix redundant installation in build.sh - previously build.sh will try to install xlearn to all versions of python in a machine, which is quite unreasonable. This commit fix it and now build.sh only install xlearn to the current command line env's default python --- build.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 8e1ab520..53a8fcfd 100755 --- a/build.sh +++ b/build.sh @@ -8,10 +8,7 @@ make # install python package cd python-package -if command -v python2; then - python2 setup.py install +if command -v python; then + python setup.py install fi -if command -v python3; then - python3 setup.py install -fi