How to install pip into a tmp directory?
I want to install pip into a tmp directory, install a few packages to a custom directory, then remove the tmp directory.
I am creating an extension for LibreOffice that automatically installs pip via get-pip.py if it is not installed and then installs the extensions required packages.I have this working for Windows and Linux (LibreOffice sudo install).
On Linux LibreOffice Flatpak it seems it is not possible to automatically install pip using get-pip.py and it seems that pip is not available otherwise.
I am working out a work around. My thinking is if I can get access to a pip installer then I can then install packages to a custom directory in the extensions sub-directory. Then it should be a simple matter to add the sub-directory to the python sys.path.
So this leaves me trying to figure out how to install pip into a tmp directory when the extension is installed into a flatpak version of LibreOffice.