Component: src/pipx/standalone_python.py
The _unpack function in standalone_python.py contains a critical bug that can cause a MemoryError and crash pipx on low-RAM systems (like CI runners, containers, or Raspberry Pi).
The _download function is carefully written to download the large Python archive in small 32KB chunks to "avoid ballooning memory usage."
However, the _unpack function, which runs immediately after, reads the entire downloaded archive into memory at once to calculate its sha256 checksum. This defeats the purpose of the chunked download and can easily exhaust system memory.