bitter-ability-32190
10/24/2022, 7:54 PM<http://repository.in|repository.in>
that lists most of my deps, minus mxnet
. -> it gets locked manually (e.g. I call pex3
) and toss in `mxnet`for the lock. Then I have a python_requirement
for mxnet
. Lastly I have a package mxboard
which has an implicit, undeclared dependency on mxnet
.
So I would normally do:
python_requirements(
...,
overrides={"mxboard": {"dependencies": [":repository#mxnet"]}}",
)
Buuuuuuuuuut In order to support GPU mxnet
I also have more lockfiles/resolves which swap mxnet
with mxnet-cu1XX
for each CUDA version we care about. Plus an additional python_requirement
for each new resolve.
But then my hardcoded dependency breaks and I weep. (All hard-coded deps break, but I despise them. This one is most relevant).
So I'm thinking we should make it easy to say "this package relies on this module (name)" that isn't specifically "this python_requirement
depends on this other `python_requirement`". That way the resolve aspect is delayed to dependency injection plugin time.
Or any other way to unblock this 🙂bitter-ability-32190
10/24/2022, 8:02 PMparameterize
works like a CHARMcurved-television-6568
10/24/2022, 8:02 PMbitter-ability-32190
10/24/2022, 8:02 PMpython_requirements(
...,
overrides={"mxboard": {"dependencies": [":#mxnet"]}}",
resolve=parametrize(
"python-repository",
"python-repository-cu102",
"python-repository-cu116",
)
)
plus:
python_requirement(
name = "mxnet",
modules = ["mxnet"],
requirements = [],
resolve = parametrize(
"python-repository",
"python-repository-cu102",
"python-repository-cu116",
)
)
curved-television-6568
10/24/2022, 8:03 PMbitter-ability-32190
10/24/2022, 8:03 PMcurved-television-6568
10/24/2022, 8:04 PMbitter-ability-32190
10/24/2022, 8:06 PMbitter-ability-32190
10/24/2022, 8:40 PMThe explicit dependency `3rdparty/python/deps:mxnet` of the target at `thinga:mabob` does not provide enough address parameters to identify which parametrization of the dependency target should be used.
bitter-ability-32190
10/24/2022, 8:41 PMbitter-ability-32190
10/24/2022, 8:41 PMhundreds-father-404
10/24/2022, 8:43 PMbitter-ability-32190
10/24/2022, 9:14 PMbitter-ability-32190
10/24/2022, 9:15 PMbitter-ability-32190
10/24/2022, 11:35 PMrequirements = [],
bitter-ability-32190
10/24/2022, 11:35 PM