equal
deleted
inserted
replaced
103 return False |
103 return False |
104 name = tempfile.mktemp(dir='.', prefix=tempprefix) |
104 name = tempfile.mktemp(dir='.', prefix=tempprefix) |
105 sock = socket.socket(socket.AF_UNIX) |
105 sock = socket.socket(socket.AF_UNIX) |
106 try: |
106 try: |
107 sock.bind(name) |
107 sock.bind(name) |
108 except socket.error, err: |
108 except socket.error: |
109 return False |
109 return False |
110 sock.close() |
110 sock.close() |
111 os.unlink(name) |
111 os.unlink(name) |
112 return True |
112 return True |
113 |
113 |
271 def has_tic(): |
271 def has_tic(): |
272 return matchoutput('test -x "`which tic`"', '') |
272 return matchoutput('test -x "`which tic`"', '') |
273 |
273 |
274 def has_msys(): |
274 def has_msys(): |
275 return os.getenv('MSYSTEM') |
275 return os.getenv('MSYSTEM') |
|
276 |
|
277 def has_aix(): |
|
278 return sys.platform.startswith("aix") |
276 |
279 |
277 checks = { |
280 checks = { |
278 "true": (lambda: True, "yak shaving"), |
281 "true": (lambda: True, "yak shaving"), |
279 "false": (lambda: False, "nail clipper"), |
282 "false": (lambda: False, "nail clipper"), |
280 "baz": (has_baz, "GNU Arch baz client"), |
283 "baz": (has_baz, "GNU Arch baz client"), |
312 "tic": (has_tic, "terminfo compiler"), |
315 "tic": (has_tic, "terminfo compiler"), |
313 "tla": (has_tla, "GNU Arch tla client"), |
316 "tla": (has_tla, "GNU Arch tla client"), |
314 "unix-permissions": (has_unix_permissions, "unix-style permissions"), |
317 "unix-permissions": (has_unix_permissions, "unix-style permissions"), |
315 "windows": (has_windows, "Windows"), |
318 "windows": (has_windows, "Windows"), |
316 "msys": (has_msys, "Windows with MSYS"), |
319 "msys": (has_msys, "Windows with MSYS"), |
|
320 "aix": (has_aix, "AIX"), |
317 } |
321 } |