Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set 'home' to parent directory of system_executable
PEP 405 says of the "home" key: "If a home key is found, this signifies that the Python binary belongs to a virtual environment, and the value of the home key is the directory containing the Python executable used to create this virtual environment." And: "In this case, prefix-finding continues as normal using the value of the home key as the effective Python binary location, which finds the prefix of the base installation." Previously, "home" was being set to `interpreter.system_exec_prefix` which does not abide by the PEP specification. In Python 3.11, the "home" directory is used to determine the value of `sys._base_executable`, so if the path specified is incorrect, the path + interpreter returned will be invalid. This can cause headaches later when trying to probe info via the discovery. Now, set this to the parent directory of `interpreter.system_executable`. Signed-off-by: Vincent Fazio <[email protected]>
- Loading branch information