diff options
Diffstat (limited to 'python/python-magic/python-magic.SlackBuild')
-rw-r--r-- | python/python-magic/python-magic.SlackBuild | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/python-magic/python-magic.SlackBuild b/python/python-magic/python-magic.SlackBuild index 991344a525..3a2cfabc0d 100644 --- a/python/python-magic/python-magic.SlackBuild +++ b/python/python-magic/python-magic.SlackBuild @@ -67,10 +67,9 @@ find -L . \ python2 setup.py install --root=$PKG -# Install for python3. Default is no. -if [ "${PYTHON3:-no}" == "yes" ]; then - rm -rf build - python3 setup.py install --root=$PKG +# Add Python3 support +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG fi find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ |