https://pantsbuild.org/ logo
#general
Title
# general
l

limited-insurance-37393

04/06/2021, 6:48 PM
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

hundreds-father-404

04/06/2021, 6:52 PM
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

enough-analyst-54434

04/06/2021, 8:05 PM
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

hundreds-father-404

04/06/2021, 8:07 PM
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

enough-analyst-54434

04/06/2021, 8:11 PM
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

hundreds-father-404

04/06/2021, 8:13 PM
Ah..thanks. I did see PIP_ARGS but didn't make the connection of building a wheel for your own code
e

enough-analyst-54434

04/06/2021, 8:13 PM
Yeah shiv is intended to be pip plus just barely enough as I understand it.
👍 1
4 Views