]> xenbits.xensource.com Git - libvirt.git/commit
python: Use hardcoded python path in libvirt.py
authorJiri Denemark <jdenemar@redhat.com>
Fri, 11 Mar 2011 12:44:20 +0000 (13:44 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 14 Mar 2011 11:37:19 +0000 (12:37 +0100)
commitc51f08272af7a1a890ccf10d421b8948777c3a33
treec231a4148ba3065078f90a90906e158dfbd15bf7
parent976eb124e7783b39d5f008be7a6bca1f71c0e0b9
python: Use hardcoded python path in libvirt.py

This partially reverts (and fixes that part in a different way) commit
e4384459c93e3e786aa483c7f077d1d22148f689, which replaced
``/usr/bin/python'' with ``/usr/bin/env python'' in all examples or
scripts used during build to generate other files.

However, python bindings module is compiled and linked against a
specific python discovered or explicitly provided in configure phase.
Thus libvirt.py, which is generated and installed into the system,
should use the same python binary for which the module has been built.

The hunk in Makefile.am replaces $(srcdir) with $(PYTHON), which might
seem wrong but it is not. generator.py didn't use any of its command
line arguments so passing $(srcdir) to it was redundant.
python/Makefile.am
python/generator.py
python/libvirt-override.py