Browse Source

l/pandas: Upgraded to pandas-0.25.3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
a145040c40
  1. 1
      l/pandas/pandas-0.22.0.tar.gz.sha256
  2. 1
      l/pandas/pandas-0.25.3.tar.gz.sha256
  3. 27
      l/pandas/pandas.SlackBuild
  4. BIN
      l/pandas/pandas.pdf

1
l/pandas/pandas-0.22.0.tar.gz.sha256

@ -1 +0,0 @@
44a94091dd71f05922eec661638ec1a35f26d573c119aa2fad964f10a2880e6c pandas-0.22.0.tar.gz

1
l/pandas/pandas-0.25.3.tar.gz.sha256

@ -0,0 +1 @@
52da74df8a9c9a103af0a72c9d5fdc8e0183a90884278db7f386b5692a2220a4 pandas-0.25.3.tar.gz

27
l/pandas/pandas.SlackBuild

@ -25,15 +25,12 @@
# Latest pandas sourcecode is available at: <http://pandas.pydata.org/>.
#
# Depends: l/numpy, l/python-dateutil, l/pytz
# Recommends: l/numexpr, l/python-bottleneck, l/scipy, l/pytables
# Recommends: l/matplotlib
# Source package infos
NAMESRC=${NAMESRC:-pandas}
VERSION=${VERSION:-0.22.0}
VERSION=${VERSION:-0.25.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/$ARCHIVE}
DOC_URL=${DOC_URL:-http://pandas.pydata.org/pandas-docs/version/$VERSION/pandas.pdf}
WGET=${WGET:-https://files.pythonhosted.org/packages/b7/93/b544dd08092b457d88e10fc1e0989d9397fd32ca936fdfcbb2584178dd2b/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pandas}
@ -61,14 +58,12 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -83,23 +78,23 @@ fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Get the documentation
if [ ! -r pandas.pdf ]; then
wget -c -O pandas.pdf.part "$DOC_URL"
mv pandas.pdf.part pandas.pdf
fi
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT" \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 LICENSE PKG-INFO RELEASE.md $CWD/pandas.pdf $PKG/usr/doc/$NAME
install -m 644 LICENSE README.md RELEASE.md $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

BIN
l/pandas/pandas.pdf

Loading…
Cancel
Save