python/cryptography: python3-maturin dependency changed to rust-opt.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Gene Carlson 2024-09-22 04:03:03 +09:00 committed by Willy Sudiarto Raharjo
parent 65ba9a8051
commit 7554148d66
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 11 additions and 11 deletions

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cryptography
VERSION=${VERSION:-43.0.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
VSBUILD=${VSBUILD:-1}
@ -89,11 +89,11 @@ export CARGO_NET_OFFLINE=true
# prevent cargo from writing outside of $TMP
export CARGO_HOME=$(pwd)/$VSDIR/.cargo
export PATH="/opt/rust16/bin:$PATH"
export PATH="/opt/rust/bin:$PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX"
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX"
else
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
fi
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')

View file

@ -2,7 +2,7 @@
# Create $PRGNAM-vendored-sources-$VERSION-$VSBUILD.tar.xz
# Requires network access, but does not require root privilege.
# Requires that $PRGNAM's REQUIRES need to be installed first (rust16)
# Requires that $PRGNAM's REQUIRES need to be installed first (rust-opt)
# and cargo-vendor-filterer installed to include just the linux deps
#
# Expects to be run within a slackbuild dir with the source archive
@ -87,16 +87,16 @@ else
LIBDIRSUFFIX=""
fi
# check if rust16 is installed
if [ ! -d /opt/rust16/bin ]; then
echo "ERROR: The rust16 slackbuild is required to be installed"
# check if rust-opt is installed
if [ ! -d /opt/rust/bin ]; then
echo "ERROR: The rust-opt slackbuild is required to be installed"
exit 1
else
export PATH="/opt/rust16/bin:$PATH"
export PATH="/opt/rust/bin:$PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX"
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX"
else
export LD_LIBRARY_PATH="/opt/rust16/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
fi
fi