diff options
author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2024-03-31 07:28:13 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-05 15:18:07 +0700 |
commit | 8445ac25521a63752f7d902ed865bc875608a87f (patch) | |
tree | ff8109d7b628ef7b5cc7dbf61941f93b946175ed /python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild | |
parent | d31d28e5fe7bfd5d0e2cc6d2c8618e0bf9becee8 (diff) |
python/python3-setuptools-scm-opt: README fixes.
Applying fixes for current even though they are not needed, but for
consistency.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild')
-rw-r--r-- | python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild b/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild index 242de21c16..ff9895deaf 100644 --- a/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild +++ b/python/python3-setuptools-scm-opt/python3-setuptools-scm-opt.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-setuptools-scm-opt -# Copyright 2023 fourtysixandtwo <fourtysixandtwo@sliderr.net> +# Copyright 2023-2024 fourtysixandtwo <fourtysixandtwo@sliderr.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -66,17 +66,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ -export PYTHONPATH=/opt/python3.9/site-packages/ +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 if [ "$PKG/usr/" != "/usr/" ]; then mkdir -p $PKG/opt - mv $PKG/usr/lib*/python3.9 $PKG/opt/ + mv $PKG/usr/lib*/python$PYVER $PKG/opt/ rmdir $PKG/usr/lib* else - echo "ERROR: \$PKG is not set! We don't want to move the real /usr/lib*/python3.9" + echo "ERROR: \$PKG is not set! We don't want to move the real /usr/lib*/python$PYVER" exit 1 fi |