aboutsummaryrefslogtreecommitdiff
path: root/python/pathtools3
diff options
context:
space:
mode:
authorProf. HORSTMANN <wmh@eipg.fr>2020-12-12 05:09:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-12-12 05:13:59 +0700
commit814217f3899b0f2dbb5c1e8937792cc8eb26582a (patch)
tree4d30842e0d0ec4ab9c7ae2503efbbdd7fa055895 /python/pathtools3
parent1d9db357c95588193f06f48a560e38cd60292b5b (diff)
python/pathtools3: Added (File system general utilities).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pathtools3')
-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 acd0ffffecf6..77244e0eee4b 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 e0e6e25a70fb..eeb0de446009 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 d266c7db9fc4..28e6c934149c 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"