()
| 205 | |
| 206 | |
| 207 | def detect_os_name(): |
| 208 | if sys.platform.startswith('win'): |
| 209 | return 'win' |
| 210 | if sys.platform == 'darwin': |
| 211 | return 'mac' |
| 212 | if sys.platform.startswith('linux'): |
| 213 | return 'linux' |
| 214 | if sys.platform.startswith('freebsd'): |
| 215 | return 'freebsd' |
| 216 | raise ValueError(f'Unsupported host platform {sys.platform!r}') |
| 217 | |
| 218 | |
| 219 | def detect_target_arch(): |
no outgoing calls
no test coverage detected
searching dependent graphs…