It seems that the compress library I'm using is using the system's built-in
zip
package. In order to write to a temp file instead of to the system I might have to swap out the library with something else.
Tim Hårek Andreassen referenced this ticket in commit 32c4298.
Tim Hårek Andreassen referenced this ticket in commit 27566a3.