(missing, filename)
| 154 | |
| 155 | |
| 156 | def get_matching_oses(missing, filename): |
| 157 | # OSX |
| 158 | if 'darwin' in filename or 'osx' in filename: |
| 159 | return ('darwin',) |
| 160 | elif missing == 'SystemConfiguration/SystemConfiguration.h': |
| 161 | return ('darwin',) |
| 162 | |
| 163 | # Windows |
| 164 | elif missing in ('windows.h', 'winsock2.h'): |
| 165 | return ('win32',) |
| 166 | |
| 167 | # other |
| 168 | elif missing == 'sys/ldr.h': |
| 169 | return ('aix',) |
| 170 | elif missing == 'dl.h': |
| 171 | # XXX The existence of Python/dynload_dl.c implies others... |
| 172 | # Note that hpux isn't actual supported any more. |
| 173 | return ('hpux', '???') |
| 174 | |
| 175 | # unrecognized |
| 176 | else: |
| 177 | return () |
| 178 | |
| 179 | |
| 180 | def is_missing_dep(errtext): |
no outgoing calls
no test coverage detected
searching dependent graphs…