tests/hghave.py
changeset 39351 4cfd1eebe6aa
parent 38703 b93dc48e74ad
child 39402 ecbab8be7470
equal deleted inserted replaced
39350:5b92a717bfc1 39351:4cfd1eebe6aa
   629 def has_py3k():
   629 def has_py3k():
   630     return 3 == sys.version_info[0]
   630     return 3 == sys.version_info[0]
   631 
   631 
   632 @check("py3exe", "a Python 3.x interpreter is available")
   632 @check("py3exe", "a Python 3.x interpreter is available")
   633 def has_python3exe():
   633 def has_python3exe():
   634     return 'PYTHON3' in os.environ
   634     return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)')
   635 
   635 
   636 @check("py3pygments", "Pygments available on Python 3.x")
   636 @check("py3pygments", "Pygments available on Python 3.x")
   637 def has_py3pygments():
   637 def has_py3pygments():
   638     if has_py3k():
   638     if has_py3k():
   639         return has_pygments()
   639         return has_pygments()