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

Philip Lacroix slackph at posteo.de
Tue Dec 15 13:12:40 UTC 2015


Am 14.12.2015 23:19 schrieb B Watson:
> What happens if someone needs both python 2 and 3 support?
> 
> Does the python3 stuff actually conflict with the python2 stuff? If 
> not,
> maybe it'd be good to allow building both instead of choosing only one
> or the other.

Removed redundant assignments in the case construct:

#####
B1="2"; B2=""

if [ "${PYTHON3SUPPORT:-no}" == "yes" ]; then
   case "$BUILD_FIRST" in
     2) B2="3" ;;
     3) B1="3"; B2="2" ;;
     *) B1="3" ;;
   esac
fi

python$B1 setup.py install --root=$PKG
if [[ -n $B2 ]]; then
   python$B2 setup.py install --root=$PKG
fi
#####



More information about the SlackBuilds-users mailing list