mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-24 00:58:54 +03:00
setup: Use user requested python binary
When setup.py is kicked off with a python interpreter other than the system 'python', (e.g. python2.7 setup.py build) the build process would switch to 'python' and not use python2.7 as requested by the user. We should always respect the user requested python interpreter and use it.
This commit is contained in:
8
setup.py
8
setup.py
@ -122,10 +122,10 @@ class my_build(build):
|
||||
def run(self):
|
||||
apis = get_api_xml_files()
|
||||
|
||||
self.spawn(["python", "generator.py", "libvirt", apis[0]])
|
||||
self.spawn(["python", "generator.py", "libvirt-qemu", apis[1]])
|
||||
self.spawn([sys.executable, "generator.py", "libvirt", apis[0]])
|
||||
self.spawn([sys.executable, "generator.py", "libvirt-qemu", apis[1]])
|
||||
if have_libvirt_lxc:
|
||||
self.spawn(["python", "generator.py", "libvirt-lxc", apis[2]])
|
||||
self.spawn([sys.executable, "generator.py", "libvirt-lxc", apis[2]])
|
||||
|
||||
build.run(self)
|
||||
|
||||
@ -267,7 +267,7 @@ class my_test(Command):
|
||||
|
||||
apis = get_api_xml_files()
|
||||
|
||||
self.spawn(["python", "sanitytest.py", self.build_platlib, apis[0]])
|
||||
self.spawn([sys.executable, "sanitytest.py", self.build_platlib, apis[0]])
|
||||
|
||||
|
||||
class my_clean(clean):
|
||||
|
Reference in New Issue
Block a user