diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-21 13:07:11 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-21 21:17:58 -0500 |
commit | 789607dcf7b2a464b4c9fd3154ad1bddeb8d4783 (patch) | |
tree | c0720b97230be7d3dfdfceb4904e49e4c53b4751 /libraries/audioread | |
parent | 761ce0c136981300b7d41f0908d8e7d47f7c91b4 (diff) |
libraries/audioread: Python3 Fixes.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/audioread')
-rw-r--r-- | libraries/audioread/README | 7 | ||||
-rw-r--r-- | libraries/audioread/audioread.SlackBuild | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/libraries/audioread/README b/libraries/audioread/README index bae8ea908221..d9096a28e724 100644 --- a/libraries/audioread/README +++ b/libraries/audioread/README @@ -5,9 +5,4 @@ The library currently supports: - ffmpeg via its command-line interface. - The standard library wave and aifc modules (for WAV and AIFF files). -ffmpeg and gst0-python are optional dependencies. - -If you want to build this for use with Python 3.x (require python3) -pass the script PYTHON3=yes, like - - PYTHON3=yes ./audioread.SlackBuild +gst0-python are optional dependencies. diff --git a/libraries/audioread/audioread.SlackBuild b/libraries/audioread/audioread.SlackBuild index a042f5d66e6d..451edc689660 100644 --- a/libraries/audioread/audioread.SlackBuild +++ b/libraries/audioread/audioread.SlackBuild @@ -54,9 +54,6 @@ else LIBDIRSUFFIX="" fi -PYTHON=python -[ "${PYTHON3:-no}" = "yes" ] && PYTHON=python3 - set -e rm -rf $PKG @@ -72,7 +69,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 +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 |