aboutsummaryrefslogtreecommitdiff
path: root/python/pyusb
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2021-04-24 07:33:19 +0000
committerRobby Workman <rworkman@slackbuilds.org>2021-04-27 01:03:28 -0500
commitea5e1c23ac317e41c1a8295f722c3e6065e12277 (patch)
tree2d9ce1f809dbc6d02e5c3ff3adc06f0b18558b90 /python/pyusb
parentcf21cbc6d8abaa4d9e15ed19efc4ef668d9d4382 (diff)
python/pyusb: Fix REQUIRES and README.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'python/pyusb')
-rw-r--r--python/pyusb/pyusb.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/python/pyusb/pyusb.SlackBuild b/python/pyusb/pyusb.SlackBuild
index 69cb9e5d1e6b..6b8b349cf90a 100644
--- a/python/pyusb/pyusb.SlackBuild
+++ b/python/pyusb/pyusb.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=pyusb
VERSION=${VERSION:-1.1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -55,11 +55,9 @@ chmod -R u+w,go-w,a+rX-st .
# Can't build the git snapshot. Upstream publishes a modified copy
# (with version metadata that setup.py needs), see setuptools-scm.
-python2 ./setup.py install --root=$PKG
-if python3 -c 'import sys' 2>/dev/null; then
- rm -rf build
- python3 ./setup.py install --root=$PKG
-fi
+python setup.py install --root=$PKG
+rm -rf build
+python3 setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION