On python 3.5, sys.subversion have been removed

So to get the type of the python interpreter, we need to look at
sys.implementation.name which do not return 'cpython', instead of 'CPython',
but that's upstream breakage, so not much we can do.
pull/18387/merge
Michael Scherer 8 years ago committed by Brian Coca
parent fcada3e889
commit 5aaf1d1a15

@ -597,7 +597,10 @@ class Facts(object):
try:
self.facts['python']['type'] = sys.subversion[0]
except AttributeError:
self.facts['python']['type'] = None
try:
self.facts['python']['type'] = sys.implementation.name
except AttributeError:
self.facts['python']['type'] = None
class Distribution(object):

Loading…
Cancel
Save