[Slackbuilds-users] Updates - 20190601

Dominik Drobek dominik.drobek at o2.pl
Sun Jun 2 18:46:08 UTC 2019


Hi,

Regarding Jinja2 and MarkupSafe - it seems that the versions available 
in the latest update have become dependent on Python3?

SlackBuild for Jinja2 reads:

python2 setup.py install --root=$PKG
python3 setup.py install --root=$PKG


Similar for MarkupSafe:

CFLAGS="$SLKCFLAGS" \
python2 setup.py install --root=$PKG --no-compile
CFLAGS="$SLKCFLAGS" \
python3 setup.py install --root=$PKG --no-compile


Obviously both will fail when python3 binary is not available in the 
system. Shouldn't installation for Python3 be conditional? For example, 
this is the way it's handled in some scripts:

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

I think there is no real technical reason for hard python3 dependency in 
these scripts. They used to work well with just python2 - up to now.

Regards,
Dominik


More information about the SlackBuilds-users mailing list