summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Prof. HORSTMANN2020-12-11 23:09:28 +0100
committer Willy Sudiarto Raharjo2020-12-11 23:13:59 +0100
commit814217f3899b0f2dbb5c1e8937792cc8eb26582a (patch)
tree4d30842e0d0ec4ab9c7ae2503efbbdd7fa055895
parent1d9db357c95588193f06f48a560e38cd60292b5b (diff)
downloadslackbuilds-814217f3899b0f2dbb5c1e8937792cc8eb26582a.tar.gz
python/pathtools3: Added (File system general utilities).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/pathtools3/README2
-rw-r--r--python/pathtools3/pathtools3.SlackBuild11
-rw-r--r--python/pathtools3/pathtools3.info2
3 files changed, 2 insertions, 13 deletions
diff --git a/python/pathtools3/README b/python/pathtools3/README
index acd0ffffec..77244e0eee 100644
--- a/python/pathtools3/README
+++ b/python/pathtools3/README
@@ -1,3 +1 @@
Pattern matching and various utilities for file systems paths.
-
-Optional dependency: python3
diff --git a/python/pathtools3/pathtools3.SlackBuild b/python/pathtools3/pathtools3.SlackBuild
index e0e6e25a70..eeb0de4460 100644
--- a/python/pathtools3/pathtools3.SlackBuild
+++ b/python/pathtools3/pathtools3.SlackBuild
@@ -58,16 +58,7 @@ 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 {} \;
- # Python 2.7 will be droped in the future.
-if $(python2 -c 'import sys' 2>/dev/null); then
- python2 setup.py install --root=$PKG
- else
- python setup.py install --root=$PKG
-fi
-# Replacement of python-2.x Python3.x check presence and build if found.
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/python/pathtools3/pathtools3.info b/python/pathtools3/pathtools3.info
index d266c7db9f..28e6c93414 100644
--- a/python/pathtools3/pathtools3.info
+++ b/python/pathtools3/pathtools3.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/38/19/b8e751fe76e98a04bdd34dd9
MD5SUM="08bb008161e305909740076c5c422159"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="Prof. HORSTMANN"
EMAIL="wmh@eipg.fr"