Browse Source

d/sphinx: Default to Python 3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
0302457950
  1. 10
      d/sphinx/sphinx.SlackBuild

10
d/sphinx/sphinx.SlackBuild

@ -36,7 +36,7 @@ WGET=${WGET:-https://files.pythonhosted.org/packages/2a/86/8e1e8400bb6eca5ed9609
# Build infos
NAMEPKG=${NAMEPKG:-sphinx}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
@ -80,14 +80,6 @@ done
# And now for Python 3
python3 setup.py build
python3 setup.py install --root=$PKG
for f in sphinx-{apidoc,autogen,build,quickstart} ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-3.7
done
# Add default symlinks to the -2.7 executables
for f in sphinx-{apidoc,autogen,build,quickstart} ; do
ln -s $f-2.7 $PKG/usr/bin/$f
done
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save