How to include pip (python package manager) with the app?


I am testing if I could build Spyder.

So I am trying to include pip as well.
I first think that using org.kde.Sdk as runtime would have pip.

flatpak run --command=bash org.spyder_ide.spyder
[πŸ“¦ org.spyder_ide.spyder ~]$ pip
bash: pip: command not found

How do I do this?

Python 3.9 is part of the Freedesktop SDK. You can execute pip via pip3 or pip3.9

[host ~]$ flatpak run org.freedesktop.Sdk//21.08
[πŸ“¦ org.freedesktop.Sdk ~]$ pip3 --version
pip 22.0.4 from /usr/lib/python3.9/site-packages/pip (python 3.9)

If you require Python 2 you have to build it yourself, it’s part of the shared-modules.

PyCharm uses an extension:

thanks, I fix it, my manifest just malformed.