Open deathaxe opened 7 months ago
Calling sysconfig.get_paths() within plugin_host returns invalid paths such as
sysconfig.get_paths()
On MacOS it even might fail due to missing _sysconfigdata__darwin_darwin module, which needs to be created at build time.
_sysconfigdata__darwin_darwin
import sysconfig;sysconfig.get_paths()
It should return valid python version specific paths like %APPDATA%\Sublime Text\Lib\python38
%APPDATA%\Sublime Text\Lib\python38
It returns invalid python version agnostic paths like %APPDATA%\Sublime Text\Lib\site-packages, which might cause issues, when used.
%APPDATA%\Sublime Text\Lib\site-packages
Note: I haven't checked whether ST would actually import from those. They however may cause issues with some python packages such as coverage v7.x.
4173
Windows
No response
FWIW: UnitTesting monkey patches coverage's add_third_party_paths() function which uses sysinfo.get_path() to avoid issues with missing modules or returning invalid paths.
sysinfo.get_path()
https://github.com/SublimeText/UnitTesting/blob/4238294c83d2dcd839a0035ec7fc6beaa3439a00/unittesting/unit.py#L38
Description of the bug
Calling
sysconfig.get_paths()
within plugin_host returns invalid paths such asOn MacOS it even might fail due to missing
_sysconfigdata__darwin_darwin
module, which needs to be created at build time.Steps to reproduce
import sysconfig;sysconfig.get_paths()
.Expected behavior
It should return valid python version specific paths like
%APPDATA%\Sublime Text\Lib\python38
Actual behavior
It returns invalid python version agnostic paths like
%APPDATA%\Sublime Text\Lib\site-packages
, which might cause issues, when used.Note: I haven't checked whether ST would actually import from those. They however may cause issues with some python packages such as coverage v7.x.
Sublime Text build number
4173
Operating system & version
Windows
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response