[NOLIMIPS][PATCH] Force python 2.X version for python scripts

Hi, While playing around with nolimips, I noticed the project doesn't build on Archlinux. On this distro, `python` is a symlink to `python3` [1], which breaks all of the python scripts, as they have a `/usr/bin/env python` shebang and are only compatible with python 2. Still, we can't simply change the shebang to `env python2`, as it would break on legacy systems not supporting python3. I tried a quick fix checking explicitely for the presence of python2, and using it instead of python if found, which you'll find attached. Please note that I am by no means an expert on Autotools, and there probably is a more elegant solution. I'd be glad to hear your opinions on this fix. Cheers, [1]: http://legacy.python.org/dev/peps/pep-0394/ -- Kévin "Chewie" Sztern EPITA Promo 2015
participants (1)
-
Kévin Sztern