Hi Liam, thanks for taking a look. At the moment i...
# general
l
Hi Liam, thanks for taking a look. At the moment it's not a priority for me as I haven't started down the path of using it yet.
h
Thanks Tobias. Do you know generally why someone might want to use Shiv over Pex? It explains perf motivation by avoiding
pkg_resources
, but Pex's new
venv
mode avoids all Pex runtime cost after the first run so that should be irrelevant https://shiv.readthedocs.io/en/latest/history.html I was surprised by how limited the docs were given the popularity of the project I imagine one reason is "I'm already using Shiv, I don't want to migrate" - but I'm wondering for a greenfield project why you might use Shiv?
e
FWIW I compared Pex speed to Shiv when developing --venv mode and found shiv docs to be much more than sufficient - the CLI help says all you need to know from my limited experience.
h
Did you test w/ first-party sources? Docs were good enough for building a shiv with only third-party deps, but Liam and I haven't been able to figure out loading first party sources
Also how did perf compare between Pex --venv and shiv?
e
Shiv beats in the cold case since its pre-layed out in the zip as a venv, then its a tie.
👍 1
1st party is == pip. In the cli help you'll see PIP_ARGS
IOW you must have a setup.py or pyproject.toml
h
Ah..thanks. I did see PIP_ARGS but didn't make the connection of building a wheel for your own code
e
Yeah shiv is intended to be pip plus just barely enough as I understand it.
👍 1