software/theia: enable user installation of pip packages
this can be used to install linters such as pylint when the python extension prompts for it also add ~/.local/bin in user $PATH to prevent warning and to be able to use pip installed packages from the shell.
-
Owner
I think this change is actually problematic because python always looks for the user site-packages, so every time a python is launched in Theia it has ~/.local/../sites-packages in its path. This means every Python launched by an instance inside Theia is potentially affected by what's installed there, even when it's a Python built for the instance, not just for the Python available in Theia terminal.
Or perhaps alternatively, every script and interpreter generated by an SR should add -s or -S to its python shebang to ignore site packages entirely ?
Anyway, I just noticed this while trying to launch buildout tests inside Theia using the
buildout-testing
SR, with which user site-packages interfered. -
Owner
@xavier_thompson I also found strange behaviors myself, @tomo also reported earlier in !1341 (merged) , let's revert. I did !1464 (merged) , there was a new theia version and something I wanted to try for the restart issue.
PS: are you able to run buildout tests ? yesterday I sent a quick pull request to fix something minor in the docs and upstream buildout tests seem to fail on master https://github.com/buildout/buildout/pull/633/checks . I did not look in details, but my guess is that this test uses the latest setuptools and something became incompatible.
-
Owner
Ok :)
I am able to run the buildout tests for our current patch on buildout 2.7.1, I haven't managed to run the tests for upstream buildout yet. I have similar guesses.