diff options
author | Kyle Guinn <elyk03@gmail.com> | 2021-04-24 07:33:19 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-27 01:03:28 -0500 |
commit | ea5e1c23ac317e41c1a8295f722c3e6065e12277 (patch) | |
tree | 2d9ce1f809dbc6d02e5c3ff3adc06f0b18558b90 /python/pyusb/pyusb.SlackBuild | |
parent | cf21cbc6d8abaa4d9e15ed19efc4ef668d9d4382 (diff) | |
download | slackbuilds-ea5e1c23ac317e41c1a8295f722c3e6065e12277.tar.gz |
python/pyusb: Fix REQUIRES and README.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'python/pyusb/pyusb.SlackBuild')
-rw-r--r-- | python/pyusb/pyusb.SlackBuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/python/pyusb/pyusb.SlackBuild b/python/pyusb/pyusb.SlackBuild index 69cb9e5d1e..6b8b349cf9 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 |