212 def has_windows(): |
212 def has_windows(): |
213 return os.name == 'nt' |
213 return os.name == 'nt' |
214 |
214 |
215 def has_system_sh(): |
215 def has_system_sh(): |
216 return os.name != 'nt' |
216 return os.name != 'nt' |
|
217 |
|
218 def has_serve(): |
|
219 return os.name != 'nt' # gross approximation |
217 |
220 |
218 checks = { |
221 checks = { |
219 "baz": (has_baz, "GNU Arch baz client"), |
222 "baz": (has_baz, "GNU Arch baz client"), |
220 "bzr": (has_bzr, "Canonical's Bazaar client"), |
223 "bzr": (has_bzr, "Canonical's Bazaar client"), |
221 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
224 "bzr114": (has_bzr114, "Canonical's Bazaar client >= 1.14"), |
235 "mtn": (has_mtn, "monotone client (>= 1.0)"), |
238 "mtn": (has_mtn, "monotone client (>= 1.0)"), |
236 "outer-repo": (has_outer_repo, "outer repo"), |
239 "outer-repo": (has_outer_repo, "outer repo"), |
237 "p4": (has_p4, "Perforce server and client"), |
240 "p4": (has_p4, "Perforce server and client"), |
238 "pyflakes": (has_pyflakes, "Pyflakes python linter"), |
241 "pyflakes": (has_pyflakes, "Pyflakes python linter"), |
239 "pygments": (has_pygments, "Pygments source highlighting library"), |
242 "pygments": (has_pygments, "Pygments source highlighting library"), |
|
243 "serve": (has_serve, "platform and python can manage 'hg serve -d'"), |
240 "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"), |
244 "ssl": (has_ssl, "python >= 2.6 ssl module and python OpenSSL"), |
241 "svn": (has_svn, "subversion client and admin tools"), |
245 "svn": (has_svn, "subversion client and admin tools"), |
242 "svn13": (has_svn13, "subversion client and admin tools >= 1.3"), |
246 "svn13": (has_svn13, "subversion client and admin tools >= 1.3"), |
243 "svn15": (has_svn15, "subversion client and admin tools >= 1.5"), |
247 "svn15": (has_svn15, "subversion client and admin tools >= 1.5"), |
244 "svn-bindings": (has_svn_bindings, "subversion python bindings"), |
248 "svn-bindings": (has_svn_bindings, "subversion python bindings"), |