equal
deleted
inserted
replaced
1135 version = matchoutput(pytypecmd, b'[0-9a-b.]+') |
1135 version = matchoutput(pytypecmd, b'[0-9a-b.]+') |
1136 sv = distutils.version.StrictVersion |
1136 sv = distutils.version.StrictVersion |
1137 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17') |
1137 return version and sv(_bytes2sys(version.group(0))) >= sv('2019.10.17') |
1138 |
1138 |
1139 |
1139 |
1140 @check("rustfmt", "rustfmt tool at version nightly-2020-10-04") |
1140 @check("rustfmt", "rustfmt tool at version nightly-2021-11-02") |
1141 def has_rustfmt(): |
1141 def has_rustfmt(): |
1142 # We use Nightly's rustfmt due to current unstable config options. |
1142 # We use Nightly's rustfmt due to current unstable config options. |
1143 return matchoutput( |
1143 return matchoutput( |
1144 '`rustup which --toolchain nightly-2020-10-04 rustfmt` --version', |
1144 '`rustup which --toolchain nightly-2021-11-02 rustfmt` --version', |
1145 b'rustfmt', |
1145 b'rustfmt', |
1146 ) |
1146 ) |
1147 |
1147 |
1148 |
1148 |
1149 @check("cargo", "cargo tool") |
1149 @check("cargo", "cargo tool") |