On Sat, Jan 17, 2015 at 11:42 AM, ahmad <luig...@yandex.com> wrote: > hi. > > "#! /usr/bin/env python" corresponds python 3.x series for some major distro > (arch,fedora ...) and python 2.x for some others. > > python 2.x and python 3.x are not source compatible each other. > > python 3.x not contains "xrange" funcion anymore. > > range vs xrange only meaningfull for python 2.x. > > http://www.pythoncentral.io/how-to-use-pythons-xrange-and-range/ > > Distros that which still use 2.x series as default python interpreter going > to 3.x. > > regargs. > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Yes... if you look at the part of the patch that modifies Makefile.am, it's actually called with $(PYTHON) which will be python2 on distro's where python3 is the default. Unfortunately, on some distros there's no python2, so #!/usr/bin/env python2 won't work either... you can't please everyone. So the line you mentioned is more customary than anything else. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev