mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-17 00:59:36 +03:00
Add travis build config
Enable builds on several python versions, and against several versions of libvirt. Ideally we would build all the way back to 0.9.11, since that is the min supported libvirt for python binding. It is not possible to build this old libvirt version on modern distros though, so using 1.2.0 as the oldest for now. Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
15
setup.py
15
setup.py
@ -290,15 +290,16 @@ class my_test(Command):
|
||||
'lib' + plat_specifier)
|
||||
|
||||
def find_nosetests_path(self):
|
||||
paths = [
|
||||
"/usr/bin/nosetests-%d.%d" % (sys.version_info[0],
|
||||
sys.version_info[1]),
|
||||
"/usr/bin/nosetests-%d" % (sys.version_info[0]),
|
||||
"/usr/bin/nosetests",
|
||||
binaries = [
|
||||
"nosetests-%d.%d" % (sys.version_info[0],
|
||||
sys.version_info[1]),
|
||||
"nosetests-%d" % (sys.version_info[0]),
|
||||
"nosetests",
|
||||
]
|
||||
|
||||
for path in paths:
|
||||
if os.path.exists(path):
|
||||
for binary in binaries:
|
||||
path = distutils.spawn.find_executable(binary)
|
||||
if path is not None:
|
||||
return path
|
||||
|
||||
raise Exception("Cannot find any nosetests binary")
|
||||
|
Reference in New Issue
Block a user