mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-03 08:21:58 +03:00
Avoid truncating python version number when running sanity test
The current code assumes the version number string will be only three characters long, which fails with "3.10". Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
4
setup.py
4
setup.py
@ -283,7 +283,9 @@ class my_test(Command):
|
||||
if self.plat_name is None:
|
||||
self.plat_name = get_platform()
|
||||
|
||||
plat_specifier = ".%s-%s" % (self.plat_name, sys.version[0:3])
|
||||
plat_specifier = ".%s-%d.%d" % (self.plat_name,
|
||||
sys.version_info[0],
|
||||
sys.version_info[1])
|
||||
|
||||
if hasattr(sys, 'gettotalrefcount'):
|
||||
plat_specifier += '-pydebug'
|
||||
|
Reference in New Issue
Block a user