Transfert the distutil.ext from the org.asm project
This commit is contained in:
@ -37,7 +37,7 @@ def is_python_version(path=None,minversion='3.4',maxversion=None):
|
||||
stdout=subprocess.PIPE)
|
||||
pythonversion=str(p.communicate()[0],'utf8').strip()
|
||||
pythonversion = StrictVersion(pythonversion)
|
||||
|
||||
|
||||
return ( pythonversion >=StrictVersion(minversion)
|
||||
and ( maxversion is None
|
||||
or pythonversion < StrictVersion(maxversion))
|
||||
@ -91,9 +91,9 @@ def is_a_virtualenv_python(path=None):
|
||||
|
||||
'''
|
||||
if path is None:
|
||||
rep = sys.base_exec_prefix == sys.exec_prefix
|
||||
rep = sys.base_exec_prefix != sys.exec_prefix
|
||||
else:
|
||||
command = """'%s' -c 'import sys; print(sys.base_exec_prefix == sys.exec_prefix)'""" % path
|
||||
command = """'%s' -c 'import sys; print(sys.base_exec_prefix != sys.exec_prefix)'""" % path
|
||||
p = subprocess.Popen(command,
|
||||
shell=True,
|
||||
stdout=subprocess.PIPE)
|
||||
|
Reference in New Issue
Block a user