From f5812aad13f0accf42fc6bba7a454f8c927c20aa Mon Sep 17 00:00:00 2001 From: Serban Udrea Date: Fri, 8 Feb 2019 20:25:34 +0700 Subject: academic/scipy: Update script. Signed-off-by: Willy Sudiarto Raharjo --- academic/scipy/README | 2 +- academic/scipy/scipy.SlackBuild | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'academic') diff --git a/academic/scipy/README b/academic/scipy/README index e03678305e..730af33108 100644 --- a/academic/scipy/README +++ b/academic/scipy/README @@ -21,4 +21,4 @@ If you need to build scipy for debugging, set DEBUG=y. NOTE: If you use this SlackBuild scipy will run with the python version provided by Slackware Linux, which is presently 2.7.xx. If you'd like to - use python 3.x then you have to install scipy3. + use python 3.x then you have to install scipy with the scipy3 SlackBuild. diff --git a/academic/scipy/scipy.SlackBuild b/academic/scipy/scipy.SlackBuild index d317dd0478..043194c101 100644 --- a/academic/scipy/scipy.SlackBuild +++ b/academic/scipy/scipy.SlackBuild @@ -30,7 +30,7 @@ PRGNAM=scipy VERSION=${VERSION:-1.1.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -63,12 +63,10 @@ find -L . \ -exec chmod 644 {} \; DEBUG=${DEBUG:-no} -case "$DEBUG" in - [yY]|[yY][eE][sS]) DEBUG="y" ;; - *) DEBUG="" ;; -esac +DEBUG=$(echo "$DEBUG"|cut -b 1|tr a-z A-Z) -if [ ! "$DEBUG" ]; then +if [ "$DEBUG" = "N" ] +then python setup.py install --root $PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3