From 789607dcf7b2a464b4c9fd3154ad1bddeb8d4783 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Wed, 21 Apr 2021 13:07:11 +0700 Subject: libraries/audioread: Python3 Fixes. Signed-off-by: Willy Sudiarto Raharjo --- libraries/audioread/README | 7 +------ libraries/audioread/audioread.SlackBuild | 6 ++---- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'libraries/audioread') diff --git a/libraries/audioread/README b/libraries/audioread/README index bae8ea9082..d9096a28e7 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 a042f5d66e..451edc6896 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 -- cgit v1.2.3