curved-television-6568
02/09/2022, 4:01 PM--loop test ...
) why it all of a sudden starts resolving constraints.txt again.. ?
⠁ 18.66s Resolving constraints.txt
i.e. I’ve only touched on the test code in a test_foo.py
file, nothing else.
Is this expected?hundreds-father-404
02/09/2022, 4:04 PM.pants.d/pants.log
? Can you please save that and if not confidential save it as a Gist/Pastebin and link here?curved-television-6568
02/09/2022, 4:13 PMhigh-yak-85899
02/09/2022, 4:19 PMhigh-yak-85899
02/09/2022, 4:20 PMpip-tools
. I know this is mostly a pip
thing, but I'd really love to know what makes that so inefficient. Poetry seemed to handle that process much better when I tried their tool out.curved-television-6568
02/09/2022, 4:34 PMpip
will only have to apply any deltas to what is already present. So, perhaps room for improvements in how the constraints are resolved (by reusing a previous resolve as base, could speed things up perhaps)happy-kitchen-89482
02/09/2022, 5:58 PMpip
will still access the network even with a fully resolved lockfile and a fully populated download cache. I suspect that it does this to check for new versions that match requirement ranges, even though there are no ranges involved in this case.happy-kitchen-89482
02/09/2022, 5:58 PMhappy-kitchen-89482
02/09/2022, 5:59 PMhappy-kitchen-89482
02/09/2022, 5:59 PMhappy-kitchen-89482
02/09/2022, 6:00 PMcurved-television-6568
02/09/2022, 6:29 PMcurved-television-6568
02/09/2022, 6:30 PMcurved-television-6568
02/09/2022, 6:32 PMhappy-kitchen-89482
02/09/2022, 7:49 PMbest-florist-45041
02/09/2022, 9:46 PMpip will still access the network even with a fully resolved lockfile and a fully populated download cache
isn't this what --no-index --find-links=<cache dir>
is for? We should know whether the full set of 3rd party deps have changed since the last resolve, no?witty-crayon-22786
02/09/2022, 10:27 PMwitty-crayon-22786
02/09/2022, 10:28 PMwitty-crayon-22786
02/09/2022, 10:29 PMwitty-crayon-22786
02/09/2022, 10:30 PMwitty-crayon-22786
02/09/2022, 10:30 PMhappy-kitchen-89482
02/09/2022, 11:20 PMpip
itself insists on going to the network in all cases. This is sort-of documented here: https://pip.pypa.io/en/stable/topics/caching/?highlight=cache#http-responseshappy-kitchen-89482
02/09/2022, 11:20 PMWhile this cache attempts to minimize network activity, it does not prevent network access altogether.
happy-kitchen-89482
02/09/2022, 11:21 PM--no-index --find-links=
should fix thathappy-kitchen-89482
02/09/2022, 11:22 PMbest-florist-45041
02/09/2022, 11:52 PMgoal + targets
, create the venv with --no-index --find-links=...
with just that subset. This takes seconds instead of minutes.
With (1,2) only needing to be rerun whenever the dependency list changes.witty-crayon-22786
02/09/2022, 11:54 PM3) For each subset of dependencies needed for a particularyea, that is precisely what we do., create the venv withgoal + targets
with just that subset. This takes seconds instead of minutes.--no-index --find-links=...
witty-crayon-22786
02/09/2022, 11:54 PM--pex-repository
feature, which results in symlinkking out of one exploded pex and into anotherbest-florist-45041
02/09/2022, 11:55 PMwitty-crayon-22786
02/09/2022, 11:56 PMhappy-kitchen-89482
02/10/2022, 1:34 AMhappy-kitchen-89482
02/10/2022, 1:35 AM