diff options
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 69cb9e5d1e6bc..6b8b349cf90a0 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 |