diff options
Diffstat (limited to 'python/importlib-resources/importlib-resources.SlackBuild')
-rw-r--r-- | python/importlib-resources/importlib-resources.SlackBuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/python/importlib-resources/importlib-resources.SlackBuild b/python/importlib-resources/importlib-resources.SlackBuild index 1bd0b4388d..dbf5550258 100644 --- a/python/importlib-resources/importlib-resources.SlackBuild +++ b/python/importlib-resources/importlib-resources.SlackBuild @@ -22,11 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20250531 46and2: Updated version, change to pep517 build. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=importlib-resources SRCNAM=$( printf %s $PRGNAM | tr - _ ) -VERSION=${VERSION:-5.1.0} +VERSION=${VERSION:-6.5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +41,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 @@ -66,9 +65,11 @@ 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 {} \; -sed -i "s,^name =.*$,&\nversion = $VERSION," setup.cfg +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -r LICENSE README.rst docs $PKG/usr/doc/$PRGNAM-$VERSION |