ahgamut / superconfigure

wrap autotools configure scripts to build with Cosmopolitan Libc
The Unlicense
159 stars 22 forks source link

Is it possible for python to write to its own zip archive? #44

Open RoyTinker opened 3 weeks ago

RoyTinker commented 3 weeks ago

For example, I'd like to be able to install a pip upgrade and other packages inside the ape archive:

$ ./python -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /zip/Lib/site-packages (23.1.2)
Collecting pip
  Downloading pip-24.1-py3-none-any.whl (1.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 23.6 MB/s eta 0:00:00
Installing collected packages: pip
  WARNING: The scripts pip, pip3 and pip3.11 are installed in '/Users/roy/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-24.1

But it looks like the path /zip/Lib is not writable from within python execution, so it defaults to $HOME/.local/bin instead.

Is there a way to enable writing to /zip/Lib/site-packages?