aboutsummaryrefslogtreecommitdiff
path: root/python/cppy/cppy.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/cppy/cppy.SlackBuild')
-rw-r--r--python/cppy/cppy.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/cppy/cppy.SlackBuild b/python/cppy/cppy.SlackBuild
index 4af009093d..46b4de1e6a 100644
--- a/python/cppy/cppy.SlackBuild
+++ b/python/cppy/cppy.SlackBuild
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cppy
-VERSION=${VERSION:-1.3.0}
+VERSION=${VERSION:-1.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,6 +76,8 @@ sed -i 's|>=61.2||' pyproject.toml
# Get rid of scary "Package would be ignored" warning from newer setuptools
sed -i 's|\[tool\.setuptools\]|&\ninclude-package-data = false|' pyproject.toml
+export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
+
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
@@ -83,7 +85,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE PKG-INFO README.rst releasenotes.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README.rst releasenotes.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install