flathub / com.visualstudio.code

https://flathub.org/apps/details/com.visualstudio.code
151 stars 72 forks source link

Please support user-installed Python libs #22

Open madig opened 6 years ago

madig commented 6 years ago

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

nedrichards commented 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.

bilelmoussaoui commented 6 years ago

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.

TingPing commented 6 years ago

That might work fine. The VSCode process gets the PYTHONUSERBASE env var set then depending on how extensions launch process they could inherit it.

TingPing commented 6 years ago

You also can totally replace the python command, just install a wrapper script into /app/bin, if needed.