hundreds-carpet-28072
11/09/2023, 11:23 AMThe generatedHow should this D2 dependency be written? Should we be able to include it as a Pants target like so? Can’t seem to resolve the AmbiguousOwnerErrorwill have itssetup.py
set to include the 3rdparty dependencies of the code bundled in the distribution, plus any other distributions from your own repo. For example, if distribution D1 contains code that has a dependency on some source file S, and that source file is published in distribution D2, then D1's requirements will include a dependency on D2. In other words, Pants does the right thing.install_requires
python_distribution(
name="D2",
dependencies=["dirs/dir-D2"],
)
python_distribution(
name="D1",
dependencies=[
"dirs/other-dir",
":D2"
],
)
curved-television-6568
11/09/2023, 3:38 PMcurved-television-6568
11/09/2023, 3:40 PMpython_distribution
targets in the same BUILD file for the same set of sources, which you get in the above example. Pants won’t be able to tell which dist should own the sources based on the rule that the dist target closest to the source wins.hundreds-carpet-28072
11/09/2023, 4:42 PMcurved-television-6568
11/09/2023, 10:33 PMhundreds-carpet-28072
11/10/2023, 1:09 PMcurved-television-6568
11/10/2023, 6:23 PM