MCPcopy Index your code
hub / github.com/python/cpython / get_matching_oses

Function get_matching_oses

Tools/c-analyzer/c_parser/preprocessor/common.py:156–177  ·  view source on GitHub ↗
(missing, filename)

Source from the content-addressed store, hash-verified

154
155
156def 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
180def is_missing_dep(errtext):

Callers 1

is_os_mismatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…