summaryrefslogtreecommitdiffstats
path: root/development/numpy-legacy
diff options
context:
space:
mode:
Diffstat (limited to 'development/numpy-legacy')
-rw-r--r--development/numpy-legacy/README31
-rw-r--r--development/numpy-legacy/numpy-legacy.SlackBuild18
2 files changed, 30 insertions, 19 deletions
diff --git a/development/numpy-legacy/README b/development/numpy-legacy/README
index 0d3993e366..582c0ae544 100644
--- a/development/numpy-legacy/README
+++ b/development/numpy-legacy/README
@@ -2,34 +2,35 @@ NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays. NumPy is built on the Numeric code base and adds features
-introduced by numarray as well as an extended C-API and the ability to
-create arrays of arbitrary type which also makes NumPy suitable for
+introduced by numarray as well as an extended C-API and the ability
+to create arrays of arbitrary type which also makes NumPy suitable for
interfacing with general-purpose data-base applications.
There are also basic facilities for discrete fourier transform, basic
linear algebra and random number generation.
-If you need to build numpy for debugging, set DEBUG=y. If you use software
-which is having problems with numpy's new relaxed strides checking, set
-NPY_RSC=0.
+If you need to build numpy for debugging, set DEBUG=y. If you use
+software which is having problems with numpy's new relaxed strides
+checking, set NPY_RSC=0.
-It is highly recommended to install libraries implementing BLAS and LAPACK
-before installing numpy. You may choose between:
+It is highly recommended to install libraries implementing BLAS and
+LAPACK before installing numpy. You may choose between:
a) BLAS and LAPACK (reference but unoptimized and thus slow)
b) OpenBLAS (optimized, provides LAPACK too)
c) ATLAS and LAPACK (optimized), good to read README.ATLAS
All these are available on SlackBuilds.org.
-If you want to use the UMFPACK library instead of SuperLU to solve unsymmetric
-sparse linear systems, then run this Slackbuild with NO_UMFPACK set to "no"
-and then install scikit-umfpack on top of scipy. In this context, UMFPACK is an
-optional dependency for numpy. Nevertheless, note that presently scikit-umfpack
-is not available on SlackBuilds.org while its dependencies are.
+If you want to use the UMFPACK library instead of SuperLU to solve
+unsymmetric sparse linear systems, then run this Slackbuild with
+NO_UMFPACK set to "no" and then install scikit-umfpack on top of
+scipy. In this context, UMFPACK is an optional dependency for
+numpy. Nevertheless, note that presently scikit-umfpack is not
+available on SlackBuilds.org while its dependencies are.
NOTE: If you use this SlackBuild, numpy 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 numpy with the numpy-legacy3
- SlackBuild.
+ provided by Slackware Linux, which is presently 2.7.xx. If you'd
+ like to use python 3.x then you have to install numpy with the
+ numpy-legacy3 SlackBuild.
IMPORTANT: This version, 1.8.2, is the latest to include the oldnumeric
and numarray compatibility modules. Starting with version
diff --git a/development/numpy-legacy/numpy-legacy.SlackBuild b/development/numpy-legacy/numpy-legacy.SlackBuild
index 82a1687f81..a96eb39643 100644
--- a/development/numpy-legacy/numpy-legacy.SlackBuild
+++ b/development/numpy-legacy/numpy-legacy.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for the latest version of NumPy to include
# the compatibility layer with numeric and numarray
@@ -42,10 +42,13 @@
# Added the possibility to force numpy to link to different kinds of the
# ATLAS library (S. Udrea)
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM="numpy-legacy"
VERSION=${VERSION:-1.8.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
TARBALL_NAME=numpy # This is actually what we are going to install
@@ -71,9 +74,16 @@ else
LIBDIRSUFFIX=""
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$PRGNAM}
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
@@ -160,4 +170,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE