summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-05-21 21:32:05 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-06-02 01:02:21 +0700
commita33f35bc154e48389ab6cea5077a60a730290ae2 (patch)
tree19def0550cb6885d6be2201da815328ee8591c52
parent633150fbbd18773852d2552c9065eb1d12a69b91 (diff)
downloadslackbuilds-a33f35bc154e48389ab6cea5077a60a730290ae2.tar.gz
python/BeautifulSoup4: Convert python to python2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/BeautifulSoup4/BeautifulSoup4.SlackBuild7
-rw-r--r--python/BeautifulSoup4/BeautifulSoup4.info2
2 files changed, 3 insertions, 6 deletions
diff --git a/python/BeautifulSoup4/BeautifulSoup4.SlackBuild b/python/BeautifulSoup4/BeautifulSoup4.SlackBuild
index 6793e1369a..ff38ba2659 100644
--- a/python/BeautifulSoup4/BeautifulSoup4.SlackBuild
+++ b/python/BeautifulSoup4/BeautifulSoup4.SlackBuild
@@ -72,10 +72,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 support (requires python-soupsieve)
-if $(python2 -c 'import soupsieve' 2>/dev/null); then
- python setup.py install --root=$PKG
-fi
+python2 setup.py install --root=$PKG
# Python 3 support (requires python3-soupsieve)
# shaypal5 provided an example package check:
@@ -94,7 +91,7 @@ if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("soupsieve"))'); t
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
- # Build for Python 3
+ # Build for Python 3
sed -i "s/-rfI/-rf/" convert-py3k
sh convert-py3k
python3 setup.py install --root=$PKG
diff --git a/python/BeautifulSoup4/BeautifulSoup4.info b/python/BeautifulSoup4/BeautifulSoup4.info
index 124eda5d4b..84b1895def 100644
--- a/python/BeautifulSoup4/BeautifulSoup4.info
+++ b/python/BeautifulSoup4/BeautifulSoup4.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://www.crummy.com/software/BeautifulSoup/bs4/download/4.9/beautif
MD5SUM="57fd468ae3eb055f6871106e8f7813e2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python-soupsieve"
+REQUIRES="python2-soupsieve"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu1@isaacyu1.com"