summaryrefslogtreecommitdiff
path: root/python/pyicu
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-04-19 22:06:27 -0500
committerRobby Workman <rworkman@slackbuilds.org>2021-04-19 22:06:27 -0500
commitef7716f86daa446d9bcac3167e6e03c36a74c4b3 (patch)
treee597b96800bbb6345a3e217355560514d2339ce2 /python/pyicu
parent92ece461ba522f05260e6705a21ca3950699f742 (diff)
downloadslackbuilds-ef7716f86daa446d9bcac3167e6e03c36a74c4b3.tar.gz
python/pyicu: Build with python3 unconditionally
Diffstat (limited to 'python/pyicu')
-rw-r--r--python/pyicu/README5
-rw-r--r--python/pyicu/pyicu.SlackBuild8
2 files changed, 2 insertions, 11 deletions
diff --git a/python/pyicu/README b/python/pyicu/README
index 7473d2b4a8..86100eea25 100644
--- a/python/pyicu/README
+++ b/python/pyicu/README
@@ -1,7 +1,2 @@
PyICU is a Python extension wrapping IBM's International
Components for Unicode C++ library (ICU).
-
-python3 is an optional dependency. You need to set PYTHON3=yes,
-for example:
-
- PYTHON3=yes ./pyicu.SlackBuild
diff --git a/python/pyicu/pyicu.SlackBuild b/python/pyicu/pyicu.SlackBuild
index bf2bb1d31a..e1d22e84ef 100644
--- a/python/pyicu/pyicu.SlackBuild
+++ b/python/pyicu/pyicu.SlackBuild
@@ -57,12 +57,8 @@ 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 setup.py install --root=$PKG
-
-if [ "${PYTHON3:-no}" = "yes" ]; then
- rm -rf build
- python3 setup.py install --root=$PKG
-fi
+python2 setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true