diff options
| author | fourtysixandtwo <fourtysixandtwo@sliderr.net> | 2025-06-03 15:02:57 -0600 |
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-06-07 12:27:16 +0700 |
| commit | 5a7a2e9ad54bbb6e60b596e7cbbb1ebecfa8ff75 (patch) | |
| tree | ab5390a13187971910958655e861704e4a91c18a /python/importlib-resources/importlib-resources.SlackBuild | |
| parent | 7e7f795f843a29e10e4bc212a9b80f8564bce59b (diff) | |
python/importlib-resources: Updated for version 6.5.2.
Updated for maintainer who is not currently active.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 |
