equal
deleted
inserted
replaced
200 return True |
200 return True |
201 finally: |
201 finally: |
202 os.rmdir(d) |
202 os.rmdir(d) |
203 |
203 |
204 def has_pyflakes(): |
204 def has_pyflakes(): |
205 return matchoutput('echo "import re" 2>&1 | pyflakes', |
205 return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"", |
206 r"<stdin>:1: 're' imported but unused", |
206 r"<stdin>:1: 're' imported but unused", |
207 True) |
207 True) |
208 |
208 |
209 def has_pygments(): |
209 def has_pygments(): |
210 try: |
210 try: |
239 |
239 |
240 def has_msys(): |
240 def has_msys(): |
241 return os.getenv('MSYSTEM') |
241 return os.getenv('MSYSTEM') |
242 |
242 |
243 checks = { |
243 checks = { |
|
244 "true": (lambda: True, "yak shaving"), |
|
245 "false": (lambda: False, "nail clipper"), |
244 "baz": (has_baz, "GNU Arch baz client"), |
246 "baz": (has_baz, "GNU Arch baz client"), |
245 "bzr": (has_bzr, "Canonical's Bazaar client"), |
247 "bzr": (has_bzr, "Canonical's Bazaar client"), |
246 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
248 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
247 "cacheable": (has_cacheable_fs, "cacheable filesystem"), |
249 "cacheable": (has_cacheable_fs, "cacheable filesystem"), |
248 "cvs": (has_cvs, "cvs client/server"), |
250 "cvs": (has_cvs, "cvs client/server"), |