python: add more information to debug()

This commit is contained in:
Nguyen Anh Quynh 2014-03-05 00:35:03 +08:00
parent 534b416d62
commit 965ebf8a25
2 changed files with 6 additions and 2 deletions

View File

@ -674,5 +674,7 @@ def debug():
if cs_support(archs[k]):
all_archs += "-%s" %k
return "python-%s%s" %(diet, all_archs)
(major, minor, _combined) = cs_version()
return "python-%s%s-c%u.%u-b%u.%u" %(diet, all_archs, major, minor, CS_API_MAJOR, CS_API_MINOR)

View File

@ -280,5 +280,7 @@ def debug():
if cc.cs_support(archs[k]):
all_archs += "-%s" %k
return "CYTHON-%s%s" %(diet, all_archs)
(major, minor, _combined) = capstone.cs_version()
return "Cython-%s%s-c%u.%u-b%u.%u" %(diet, all_archs, major, minor, capstone.CS_API_MAJOR, capstone.CS_API_MINOR)