[Slackbuilds-users] Support for Python 3 in python-pillow?

Philip Lacroix slackph at posteo.de
Sun Dec 13 19:23:57 UTC 2015


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 

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

More information about the SlackBuilds-users mailing list