You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.prefix is not easy to identify. Hence left empty for now.
If we can find a way to identify sys.prefix consistenly for all platforms, then we can populate this field.
Pseduo code for algorithm
homebrew_dir = // find this folder (either "HOMEBREW_PREFIX" or default to directory defined here https://docs.brew.sh/Installation)for file under "<homebrew_dir>/bin":if we have a python executable and its a symlink, then proceed
if not, then skip this file
resolve the symlink and verify the file is in one of the known homebrew directories.
if not, then skip this file
Extract the version from the file path.Compute the env_path by extracting the version information.The env_path is known directories on MacOS(Intel&Silicon) and Linux.Identify all known Symlinksfor the python executable.There are a number of symlinks for each Python environment executable.Best to identify them all.As we have no idea which ones will be used by users.Note:Identifying `sys_prefix` is not easy, hence left empty for now.