Danny McClanahan

Results 64 comments of Danny McClanahan

Converted this into a draft as this is really just the easier part of #399.

This seems extremely relevant to the ongoing work in pip to produce a `resolve` command in pypa/pip#10748. It appears #1132 has already done a lot of work to visualize the...

Reading @jsirois's thoughts at https://github.com/pantsbuild/pex/issues/2158#issuecomment-1599342665 again: > Since this would only be used by the Pex CLI (build-time), a rust implementation is actually how I'd approach this. It's the right...

Ah, wonderful, I've just found the docs for pyo3 https://docs.rs/pyo3/latest/pyo3/.

Ok, just had a lot of fun converting this into a pyo3 package and the result runs even faster! This branch isn't passing because I've added some hacks to get...

Just refactored this immensely after @jsirois's suggestion to use @stuhood's strategy of `zip -FF`.

> That said, it really does beg the question of why not just use `--layout packed` I understand that `--layout packed` was created specifically for users seeking to maximize cacheability,...

I used the term "prototyping" very loosely. I was merely emphasizing how often `--layout zipapp` is employed for the user's convenience. Our docs at https://pex.readthedocs.io/en/v2.1.140/buildingpex.html#saving-pex-files don't mention the other layouts,...

> Ok. The docs are in a sorry state to be sure, but that can be remedied. That wasn't my intention -- please don't assume antagonism. I was attempting to...

After a bit of investigation, it seems all the necessary tools to reuse `--layout packed` cache archives for `--layout zipapp` are available in the python `zipfile` library through 2.7.