[systemd-devel] [PATCH] *.py: don't hardcode /usr/bin/python

Colin Walters walters at verbum.org
Fri Nov 30 13:03:01 PST 2012


On Fri, 2012-11-30 at 21:49 +0100, Michael Biebl wrote:
> 2012/11/30 Ramkumar Ramachandra <artagnon at gmail.com>:
> > Execute python using "/usr/bin/env python" instead of hard-coding the
> 
> I'm not really a fan of using /usr/bin/env, as you can pick up a
> random python version depending on how your PATH is setup.
> Besides, you need to spawn an additional binary.
> I would assume that pretty much every distro ships the python
> interpreter as /usr/bin/python.


The conclusion we came to in GNOME is that components should accept a
--with-python=/path/to/python option for configure to specify which
python should be used.  If not provided, then falling back
to /usr/bin/env is probably fine.

https://mail.gnome.org/archives/desktop-devel-list/2012-November/msg00014.html




More information about the systemd-devel mailing list