busy-vase-39202
02/04/2022, 8:53 PMfresh-cat-90827
02/04/2022, 11:15 PMps
call.bland-father-19717
02/05/2022, 7:40 AMacceptable-football-32760
02/05/2022, 10:59 PMpytorch
which can be installed with CPU or GPU support. For tests, and having consistent local dev env, we would obviously need CPU
. For deployment to training infra, we would need GPU
.
With my limited knowldge of 👖 I see an imperfect solution:
• have tags on literally every target (because we have a lot of things depending on pytorch
potentially transitively) cpu
or gpu
and duplicate those targets' code, changing only dependency on torch_cpu
vs torch_gpu
Question: is it possible, without messing tags, jsut somehow define a conditional python_requirement
, say (in pseudocode)
python_requirement(
name = "torch_1.10",
if (option == "cpu") {
requirements = ["torch @ <https://download.pytorch.org/whl/cpu/torch-1.10.0%2Bcpu-cp38-cp38-linux_x86_64.whl>"]
}
else {
requirements = ["torch @ <https://download.pytorch.org/whl/cu113/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl>"]
}
)
maybe using options or smth like that. So that the choice is made at the level of the initial requirement. Something similar to Bazel's toolchain hosts... Any ideas are welcome!
Thanks! Alexworried-bird-21785
02/07/2022, 9:21 AMsome-farmer-97614
02/07/2022, 10:26 AMsome-farmer-97614
02/07/2022, 2:37 PMsome-farmer-97614
02/07/2022, 2:53 PMrelocated_files
to rename a file? I am trying to do this but get the error
Cannot strip prefix [...] from root directory (Digest with hash [...]) - subdirectory [...] didn't contain a directory named [...] but did contain file named: [...]
some-farmer-97614
02/07/2022, 3:10 PMbig-xylophone-43403
02/08/2022, 4:23 AMhigh-yak-85899
02/08/2022, 4:43 AMIncremental Adoption
. The section on Setting up Linters call outs a Linters and Formatters link that is dead for me. Anyone else have the same issue?high-yak-85899
02/08/2022, 5:37 AMpyright
for type checking instead of mypy
? I'm finding mypy
incredibly prohibitive to get working. For a tool written to work with python as the intended target, they're rather inflexible. Pyright has been working great for us, but it's another thing that requires us to construct a large venv at the moment and type check every file all the time.adventurous-judge-80222
02/08/2022, 9:31 PMremote_cache_read = true
remote_cache_write = true
remote_store_address = "<grpc://localhost:8980>"
remote_instance_name = "memory"
I could use help figuring out if the pants build actually hits the running remote cache instance.happy-kitchen-89482
02/08/2022, 10:51 PMbusy-vase-39202
02/08/2022, 10:52 PMhundreds-father-404
02/08/2022, 10:54 PMhappy-kitchen-89482
02/08/2022, 10:56 PMhigh-yak-85899
02/09/2022, 12:33 AMpytest
? More details in threadgentle-hydrogen-65984
02/09/2022, 4:19 AMcurved-television-6568
02/09/2022, 6:17 AMcurved-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?high-yak-85899
02/09/2022, 4:57 PMhallowed-plastic-91664
02/09/2022, 9:54 PMhallowed-plastic-91664
02/09/2022, 9:54 PMhappy-kitchen-89482
02/10/2022, 1:36 AMwitty-family-13337
02/10/2022, 8:25 AMGenerateSourcesRequest
-based rules. Assuming that I’ve got a target like mytarget(sources=['source1.ext', 'source2.ext'])
and then I write a custom GenerateMySourcesRequest
like:
class GenerateMySourcesRequest(GenerateSourcesRequest):
input = MySourcesField
output = MyGeneratedSourcesField
How or where does Pants attach that MyGeneratedSourcesField
referenced in the output? Does Pants create a target on the fly with that field or does it simply attach the field to the original mytarget
?bitter-ability-32190
02/10/2022, 5:30 PMhigh-yak-85899
02/10/2022, 8:49 PM--changed-dependees
when using advanced target selection? For example, only go 4 links away or something like that?silly-diamond-59365
02/10/2022, 10:09 PMProcessExecutionFailure: Process 'Resolving constraints.txt' failed with exit code 1.
...
KeyError: "There is no item named 'Hypercorn-0.13.2.dist-info/METADATA' in the archive"
In that example, I went from hypercorn
0.11.2 to 0.13.2. At first I was thinking this is just related to that particular library, but I've seen that issue happen with another: stream-chat
. Other requirements seem to be updating fine and updating that package with pip directly seems to work.
Has anyone else experienced this kind of issue and/or can point me in the right direction? Any help would be more appreciated! Thanks!