tests/hghave.py
changeset 43819 e8a3bbffdc7d
parent 43699 21e05aabef8c
child 44119 5b38c2ab6ad3
equal deleted inserted replaced
43818:ce088b38f92b 43819:e8a3bbffdc7d
  1013 def has_pytype():
  1013 def has_pytype():
  1014     pytypecmd = 'pytype --version'
  1014     pytypecmd = 'pytype --version'
  1015     version = matchoutput(pytypecmd, b'[0-9a-b.]+')
  1015     version = matchoutput(pytypecmd, b'[0-9a-b.]+')
  1016     sv = distutils.version.StrictVersion
  1016     sv = distutils.version.StrictVersion
  1017     return version and sv(_strpath(version.group(0))) >= sv('2019.10.17')
  1017     return version and sv(_strpath(version.group(0))) >= sv('2019.10.17')
       
  1018 
       
  1019 
       
  1020 @check("rustfmt", "rustfmt tool")
       
  1021 def has_rustfmt():
       
  1022     # We use Nightly's rustfmt due to current unstable config options.
       
  1023     return matchoutput(
       
  1024         '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt'
       
  1025     )