aboutsummaryrefslogtreecommitdiff
path: root/python/nanobind
diff options
context:
space:
mode:
Diffstat (limited to 'python/nanobind')
-rw-r--r--python/nanobind/nanobind.SlackBuild15
-rw-r--r--python/nanobind/nanobind.info14
2 files changed, 21 insertions, 8 deletions
diff --git a/python/nanobind/nanobind.SlackBuild b/python/nanobind/nanobind.SlackBuild
index 0217f60d7f..b19bdc1499 100644
--- a/python/nanobind/nanobind.SlackBuild
+++ b/python/nanobind/nanobind.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for nanobind
# Copyright 2025, Fernando Lopez Jr.
+# Copyright 2025 Jeremy Hansen <jebrhansen+SBo@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nanobind
-VERSION=${VERSION:-2.5.0}
+VERSION=${VERSION:-2.9.2}
+ROBINVER=${ROBINVER:-4ec1bf1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,6 +73,9 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rmdir $PRGNAM-$VERSION/ext/robin_map
+tar xvf $CWD/robin-map-$ROBINVER*.tar.gz
+mv robin-map-$ROBINVER* $PRGNAM-$VERSION/ext/robin_map
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -85,12 +90,18 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr/lib${LIBDIRSUFFIX} \
- -DNB_USE_SUBMODULE_DEPS=OFF \
+ -DNB_USE_SUBMODULE_DEPS=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
+
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
+
#rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/python/nanobind/nanobind.info b/python/nanobind/nanobind.info
index 0a1808188e..ec4c304f7e 100644
--- a/python/nanobind/nanobind.info
+++ b/python/nanobind/nanobind.info
@@ -1,10 +1,12 @@
PRGNAM="nanobind"
-VERSION="2.5.0"
+VERSION="2.9.2"
HOMEPAGE="https://github.com/wjakob/nanobind"
-DOWNLOAD="https://github.com/wjakob/nanobind/archive/v2.5.0/nanobind-2.5.0.tar.gz"
-MD5SUM="f6b94fc28f257c60b54c5d34a472976e"
+DOWNLOAD="https://github.com/wjakob/nanobind/archive/v2.9.2/nanobind-2.9.2.tar.gz \
+ https://github.com/Tessil/robin-map/archive/4ec1bf1/robin-map-4ec1bf19c6a96125ea22062f38c2cf5b958e448e.tar.gz"
+MD5SUM="7e7f2288b9a235c7caa7c802f4693a52 \
+ 9100e1fe0df90bddfb7c907969047ee1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="robin-map python3-typing-extensions"
-MAINTAINER="Fernando Lopez Jr"
-EMAIL="fernando.lopezjr@gmail.com"
+REQUIRES="python3-scikit-build-core"
+MAINTAINER="Jeremy Hansen"
+EMAIL="jebrhansen+SBo@gmail.com"