On Fri, Jul 01, 2016 at 04:31:31PM +0200, Clemens Gruber wrote:
> On Fri, Jul 01, 2016 at 12:37:55PM +0200, Michael Olbrich wrote:
> > Can you try '#!/usr/bin/env python'? That should work too.
> 
> That won't work, because the problem is not the path itself, it's that
> python is symlinked to python3 on Arch and probably in the future in
> other distros as well. Arch is just a little ahead.
> 
> /usr/bin/env python --version returns "Python 3.5.1" on ArchLinux.
> 
> We could use /usr/bin/env python2 but that would only be good for
> systems where python2 is not in /usr/bin but that does not seem to be
> the problem.
> A python2 symlink exists also on Debian, so /usr/bin/python2 should work
> for most systems.

It should work correctly in PTXdist. We create <ptxdist>/bin/python as a
symlink to Python 2 when building PTXdist.

Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to