diff options
author | brobr <sborg63@disroot.org> | 2023-12-10 23:30:26 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-12-13 01:48:21 +0700 |
commit | 97a385273084def44e3c43b4a1c20f137cde605d (patch) | |
tree | eb010f85ca58dd0d6042c206c8abfdaca6b08501 /academic | |
parent | 7596ffd220770d19acb009ba5467863864e20e5b (diff) |
academic/rpy2: replace setup.py usage
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r-- | academic/rpy2/rpy2.SlackBuild | 14 | ||||
-rw-r--r-- | academic/rpy2/rpy2.info | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/academic/rpy2/rpy2.SlackBuild b/academic/rpy2/rpy2.SlackBuild index dfe6b826b9760..5ebd7d7ba064b 100644 --- a/academic/rpy2/rpy2.SlackBuild +++ b/academic/rpy2/rpy2.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rpy2 VERSION=${VERSION:-3.5.14} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -37,9 +37,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -98,10 +95,15 @@ fi ## this removes an error message from setup.py ## https://github.com/rpy2/rpy2/issues/675 -export LD_LIBRARY_PATH="${RHOMLIB}:${LD_LIBRARY_PATH}" +export LD_LIBRARY_PATH="${RHOMLIB}/lib:${LD_LIBRARY_PATH}" echo "LD_LIBRARY_PATH set to ${LD_LIBRARY_PATH}" -python3 setup.py build install --root=$PKG +# replace deprecated `python3 setup.py build install --root=$PKG` +# thanks to fourtysixandtwo +export PYTHONPATH=/opt/python3.9/site-packages/ + +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS gpl-2.0.txt NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/academic/rpy2/rpy2.info b/academic/rpy2/rpy2.info index 5e3815ce82499..d60f772b5ad04 100644 --- a/academic/rpy2/rpy2.info +++ b/academic/rpy2/rpy2.info @@ -5,6 +5,6 @@ DOWNLOAD="https://pypi.python.org/packages/source/r/rpy2/rpy2-3.5.14.tar.gz" MD5SUM="80b9205ac3800fe1a092dd5f8a8ea299" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="R cffi python3-pytest tzlocal" +REQUIRES="R cffi python3-pytest tzlocal python3-setuptools-scm-opt" MAINTAINER="Rob van Nues" EMAIL="sborg63@disroot.org" |