aboutsummaryrefslogtreecommitdiff
path: root/libraries/dropbox-python
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2022-10-14 02:44:59 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-15 10:47:34 +0700
commit5c5cb0d7147b9fde22667f2fab588c06f6ecc2fa (patch)
tree86bb530880b84c62e64d6222369aea6fc1f774b6 /libraries/dropbox-python
parentd626c37da1d8faeb2c33b756889fd8e324b4e400 (diff)
libraries/dropbox-python: Modified for py2/3 pytest-runner.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/dropbox-python')
-rw-r--r--libraries/dropbox-python/dropbox-python.SlackBuild10
-rw-r--r--libraries/dropbox-python/dropbox-python.info2
2 files changed, 4 insertions, 8 deletions
diff --git a/libraries/dropbox-python/dropbox-python.SlackBuild b/libraries/dropbox-python/dropbox-python.SlackBuild
index 93a2f748ba412..5601d14ea1fb8 100644
--- a/libraries/dropbox-python/dropbox-python.SlackBuild
+++ b/libraries/dropbox-python/dropbox-python.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dropbox-python
SCRNAM=$(printf $PRGNAM | cut -c1-7)
VERSION=${VERSION:-9.4.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,12 +80,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
-
-# Python 3 support.
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python2 setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/libraries/dropbox-python/dropbox-python.info b/libraries/dropbox-python/dropbox-python.info
index d02f3694a620d..b6a7db22d5045 100644
--- a/libraries/dropbox-python/dropbox-python.info
+++ b/libraries/dropbox-python/dropbox-python.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/88/c9/899c5d112eb4aa48fb611153
MD5SUM="25f2106e9d4ee7b063749c8f22a567dc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="pytest-runner"
+REQUIRES="python2-pytest-runner python3-pytest-runner"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"