Is the Python installation running from a different prefix than what was targetted when building?
()
| 364 | |
| 365 | |
| 366 | def _installation_is_relocated(): |
| 367 | """Is the Python installation running from a different prefix than what was targetted when building?""" |
| 368 | if os.name != 'posix': |
| 369 | raise NotImplementedError('sysconfig._installation_is_relocated() is currently only supported on POSIX') |
| 370 | |
| 371 | data = _get_sysconfigdata() |
| 372 | return ( |
| 373 | data['prefix'] != getattr(sys, 'base_prefix', '') |
| 374 | or data['exec_prefix'] != getattr(sys, 'base_exec_prefix', '') |
| 375 | ) |
| 376 | |
| 377 | |
| 378 | def _init_posix(vars): |
nothing calls this directly
no test coverage detected
searching dependent graphs…