diff options
Diffstat (limited to 'python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild')
-rw-r--r-- | python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild b/python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild index 61b69d2f93..0435a532e6 100644 --- a/python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild +++ b/python/python3-setuptools-opt/python3-setuptools-opt.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-setuptools-opt SRCNAM=setuptools -VERSION=${VERSION:-70.3.0} +VERSION=${VERSION:-74.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -96,6 +96,7 @@ if [ "$LIBDIRSUFFIX" = "64" ]; then fi PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages python3 -m build --no-isolation python3 -m installer -d "$PKG" dist/*.whl @@ -114,12 +115,12 @@ cp -a NEWS.rst LICENSE PKG-INFO README.rst \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# If there's a CHANGES.rst, installing at least part of the recent history +# If there's a docs/history.rst, installing at least part of the recent history # is useful, but don't let it get totally out of control: -if [ -r CHANGES.rst ]; then +if [ -r docs/history.rst ]; then DOCSDIR=$(echo $PKG/usr/doc/${PRGNAM}-$VERSION) - cat CHANGES.rst | head -n 1000 > $DOCSDIR/CHANGES.rst - touch -r CHANGES.rst $DOCSDIR/CHANGES.rst + cat docs/history.rst | head -n 1000 > $DOCSDIR/history.rst + touch -r docs/history.rst $DOCSDIR/history.rst fi mkdir -p $PKG/install |