Open madig opened 6 years ago
I'm very happy to review a Pull Request but I just don't use python myself so I'm unlikely to get the details or keep it tested.
I would like that too. But sadly on VSCode, almost every extension uses
python -m pip install ....
Instead of calling pip directly.
The workaround used by Atom won't work here, at least for an extension like pylint. Because we can't replace the command python -m
at all :p
Anyway, I'm going to try the patch used by Atom and see if I can make it work on VSCode.
That might work fine. The VSCode process gets the PYTHONUSERBASE
env var set then depending on how extensions launch process they could inherit it.
You also can totally replace the python
command, just install a wrapper script into /app/bin
, if needed.
I want to install development libraries for Python, but can't install them inside the sandbox. The maintainer of the Atom flatpak made this change for Atom: https://github.com/flathub/io.atom.Atom/commit/761fe886a84896af808d4261d65a2bc40dd45f7f