Hi. I'm seeing very slow pex build times. My app i...
# general
n
Hi. I'm seeing very slow pex build times. My app includes pytorch so it's huge. I saw this related issue: https://github.com/pex-tool/pex/issues/2292. The bug report made it seem like there was a resolution but I'm not clear if that's been implemented in pants and/of if I have to change my
BUILD
in some way to get the new speedup. Anyone know?
b
You may need to update the version of pex that pants is using, yes. What version of pants are you using?
n
Copy code
[GLOBAL]
pants_version = "2.18.2"
So pretty darn new though I think 2.19 came our recently.
c
There are a few different things going on in that ticket. But I don't think
--no-pre-install-wheels
is plumbed through to pants
n
I see. Sounds like my best bet is to keep upgrading pants waiting for someone to add that then. Right?
c
If you have some concrete timing numbers you could add a note to https://github.com/pantsbuild/pants/issues/20227 or https://github.com/pantsbuild/pants/issues/18293 (or a new issue if your use case is not akin to those) Pants is a community driven project so contributions in the form of of data, use cases, docs, or code are what drive things forward
👍 2
n
Thanks!
g
This has been in my backlog for quite a while (via a generic
pex_extra_args
mechanic per 20227 linked above) but I just haven't had time for it, sorry! I'm slowly getting back on track again after a move and baby, and this is high on my agenda -- some tests at work showed 3-4x speed up for CI.
🙏 1
👍 1
n
@gorgeous-winter-99296 it looks like there's been some activity on those bugs but I didn't follow all of it. Seems like maybe the main thing is the ability to pass some options through to pex but I'm not clear what options might be relevant or helpful. Is there something I can now do to speed things up?? 🤞