high-yak-85899
05/24/2023, 7:55 PMresolves_to_only_binary
set for grpcio
and grpcio-tools
, but I'm still seeing cpu-heavy compilation steps happening when pants is trying to install things. My lockfile correctly shows the request to not install these from source. Anything I might be missing?high-yak-85899
05/24/2023, 7:59 PMhigh-yak-85899
05/24/2023, 8:10 PMpip install --only-binary="grpcio,grpcio-tools" grpcio==1.54.2 grpcio-tools==1.48.2
outside of pants works as I would expect. Only uses wheels and no heavy compilation task happening.broad-processor-92400
05/24/2023, 8:14 PMhigh-yak-85899
05/24/2023, 8:22 PMhtop
reportshigh-yak-85899
05/24/2023, 8:22 PMhigh-yak-85899
05/24/2023, 8:23 PM--no-binary :all: --only-binary :none: -i <https://pypi.org/simple/> -- setuptools>=40.8.0 wheel>=0.29.0 grpcio-tools>=1.47 protobuf==3.20
high-yak-85899
05/24/2023, 8:23 PMhigh-yak-85899
05/24/2023, 8:25 PMhigh-yak-85899
05/24/2023, 8:25 PMfast-nail-55400
05/24/2023, 8:30 PMIs this possibly pants remote caching stuff since that uses a grpc interface?No because the remote cache code is entirely in Rust.
fast-nail-55400
05/24/2023, 8:31 PMtonic
and prost
crates.high-yak-85899
05/24/2023, 8:32 PMgrpcio-tools
lower bound matches what's in our requirements file, but protobuf
does not matchhigh-yak-85899
05/24/2023, 8:35 PMpants_requirements
target?high-yak-85899
05/24/2023, 8:36 PMgrpc
mentioned at all in the lockfile there so I'm doubtfulhigh-yak-85899
05/24/2023, 8:36 PMhigh-yak-85899
05/24/2023, 8:37 PMexport --resolve=python-default
high-yak-85899
05/24/2023, 8:49 PM--no-binary
stuff comes uphigh-yak-85899
05/24/2023, 9:01 PMhigh-yak-85899
05/24/2023, 9:17 PMhigh-yak-85899
05/24/2023, 9:17 PMhigh-yak-85899
05/24/2023, 9:38 PMbroad-processor-92400
05/24/2023, 9:49 PM--keep-sandboxes=always
and jumping into the __run.sh
scripts reveal hints?high-yak-85899
05/24/2023, 9:57 PM(3.8.10) ~/devel/monorepo (no-downloaded-data)$ ./pants --keep-sandboxes=always export --no-export-symlink-python-virtualenv --resolve=python-default
15:56:17.19 [INFO] Preserving local process execution dir /tmp/pants-sandbox-kdHWQ9 for chosen_resolve.name
⠓ 40.80s chosen_resolve.name
Interrupted by user.
(3.8.10) ~/devel/monorepo (no-downloaded-data)$ ls -l /tmp/pants-sandbox-kdHWQ9/
total 4488
-rw-r--r-- 1 nathanael nathanael 522937 May 24 15:56 constraints.txt
-rwxr-xr-x 1 nathanael nathanael 4063422 May 24 15:56 pex
drwxrwxr-x 2 nathanael nathanael 4096 May 24 15:56 source_files
Doesn't look like that's in therehigh-yak-85899
05/24/2023, 10:06 PMsource_files
is empty and constraints.txt
is just the lockfile for our resolve we're exportinghigh-yak-85899
05/24/2023, 10:11 PMpants-plugins
resolve, the grpc building doesn't show uphigh-yak-85899
05/24/2023, 10:12 PMhigh-yak-85899
05/24/2023, 10:12 PMhigh-yak-85899
05/24/2023, 10:33 PMhigh-yak-85899
05/24/2023, 10:34 PMopenhtf
that is forked internally for some fixes. But there's a section like this where we're forcing pants under the hood to build grpc from source even though our first party usage doesn't allow that