(filename, errtext=None)
| 140 | |
| 141 | |
| 142 | def is_os_mismatch(filename, errtext=None): |
| 143 | # See: https://docs.python.org/3/library/sys.html#sys.platform |
| 144 | actual = sys.platform |
| 145 | if actual == 'unknown': |
| 146 | raise NotImplementedError |
| 147 | |
| 148 | if errtext is not None: |
| 149 | if (missing := is_missing_dep(errtext)): |
| 150 | matching = get_matching_oses(missing, filename) |
| 151 | if actual not in matching: |
| 152 | return matching |
| 153 | return False |
| 154 | |
| 155 | |
| 156 | def get_matching_oses(missing, filename): |
no test coverage detected
searching dependent graphs…