Greetings

I wonder if something like the following test could be added to python-pillow.SlackBuild, in order to automatically add support for Python3 if the latter is installed:

 python setup.py install --root=$PKG

+ if $(python3 -c 'import sys' 2>/dev/null); then
+  python3 setup.py install --root=$PKG
+ fi

I've been using this test in my script for glances, after borrowing it from Larry Hajali's script for psutil, and it seems to do its job nicely.

The reason for my suggestion is that I'm preparing a new SlackBuild that will require both python3 and python-pillow. The software expects pillow to support Python 3, but it doesn't, unless the script is manually edited. I understand that Slackware-current, from which the python-pillow script was taken, doesn't include Python 3, however SBo does, so it would be nice to have it autodetected. :)

Best regards
Philip
_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/

Reply via email to