Browse Source

l/python-attrs: Removed Python2 support.

current-20200608
parent
commit
2a2953dff2
  1. 6
      l/python-attrs/python-attrs.SlackBuild

6
l/python-attrs/python-attrs.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2019 Damien Goutte-Gattat
# Copyright (C) 2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -41,6 +41,7 @@ TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
set -e # Quit if a command returns non-zero
@ -66,8 +67,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
@ -77,6 +76,7 @@ install -m 644 AUTHORS.rst CHANGELOG.rst LICENSE README.rst \
$PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
export PYTHONPATH=$PKG$PYTHONDIR
if sphinx-build -b html docs $PKG/usr/doc/$NAMEPKG-$VERSION/html ; then
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi

Loading…
Cancel
Save