plain-carpet-73994
11/07/2022, 8:43 PM--extra-index-url
you pass to pip
. To make things realitvely easy we control this with an env variable and a wrapper script: if the variable is set we set the PANTS_PYTHON_REPOS_INDEXES
and PANTS_PYTHON_RESOLVES
environment variables to pull the right dependencies.
So.... given our funky setup, can we still use remote caching or is it going to be unaware of those variables and thus deliver the wrong dependencies (e.g. if I build with CPU and my collegue sets those env vars and thus expects a GPU build will they end up pulling the CPU dependencies from the cache)?bitter-ability-32190
11/07/2022, 8:44 PMwitty-crayon-22786
11/07/2022, 8:59 PMSo.... given our funky setup, can we still use remote caching or is it going to be unaware of those variables and thus deliver the wrong dependencies (e.g. if I build with CPU and my collegue sets those env vars and thus expects a GPU build will they end up pulling the CPU dependencies from the cache)?Pants is aware of all environment variables fed to processes, and will do the right thing here.
plain-carpet-73994
11/07/2022, 9:27 PMhappy-kitchen-89482
11/07/2022, 9:38 PMplain-carpet-73994
11/07/2022, 10:53 PMhappy-kitchen-89482
11/07/2022, 10:55 PMhappy-kitchen-89482
11/07/2022, 10:55 PM