better-yacht-90735
08/15/2023, 7:49 AMpython_sources(
name="python-core",
sources=["file1.py", "file2.py"],
)
python_sources(
name="python-superset",
sources=["file1.py", "file2.py", "file3.py"],
)
python_distribution(
name="python-dist",
dependencies=parameterize("python-core", "python-superset"),
provides=python_artifact(
name="python-artifact",
version="1.0.0",
description="blah blah blah.",
author="Author Authorson",
classifiers=[
"Programming Language :: Python :: 3.8",
],
),
)
I know the parameterize does not work here but I would like to somehow be able to specify what source list to use at packaging time. Doesn't matter if it only builds one or both cases.better-yacht-90735
08/15/2023, 9:02 AMbetter-yacht-90735
08/15/2023, 9:14 AMlate-advantage-75311
08/15/2023, 9:58 AMbetter-yacht-90735
08/15/2023, 10:34 AMlate-advantage-75311
08/15/2023, 10:49 AMbetter-yacht-90735
08/15/2023, 10:50 AMbetter-yacht-90735
08/15/2023, 10:50 AMbetter-yacht-90735
08/15/2023, 10:52 AMhappy-kitchen-89482
08/15/2023, 4:01 PMhappy-kitchen-89482
08/15/2023, 4:01 PMbetter-yacht-90735
08/15/2023, 4:04 PMbetter-yacht-90735
08/15/2023, 4:04 PMbetter-yacht-90735
08/15/2023, 4:06 PMhappy-kitchen-89482
08/15/2023, 4:23 PMhappy-kitchen-89482
08/15/2023, 4:24 PMhappy-kitchen-89482
08/15/2023, 4:24 PMbetter-yacht-90735
08/15/2023, 4:24 PMhappy-kitchen-89482
08/15/2023, 4:25 PMbetter-yacht-90735
08/15/2023, 4:25 PMbetter-yacht-90735
08/15/2023, 4:53 PMbetter-yacht-90735
08/15/2023, 4:53 PMbetter-yacht-90735
08/15/2023, 5:31 PMhappy-kitchen-89482
08/15/2023, 11:30 PMbetter-yacht-90735
08/16/2023, 6:20 AMhappy-kitchen-89482
08/16/2023, 6:17 PMpython_sources()
.better-yacht-90735
08/16/2023, 6:22 PMversion = "1.0.0"
author = "Veo"
name = "math"
description_math_core = "Sunstone core math library (numpy)"
sources = ["projections_v2.py", "fov.py", "virtualcam.py"]
python_sources(
name=f"{name}-core",
sources=sources,
)
python_distribution(
name=f"{name}-core-dist",
dependencies=[f":{name}-core"],
provides=python_artifact(
name=f"{name}-core-artifact",
version=version,
description=description_math_core,
author=author,
),
)
description_math = "Mmath library (numpy+opencv+cuda)"
sources = ["resampling.py", "cropping.py"]
python_sources(
name=f"{name}",
sources=sources,
)
python_distribution(
name=f"{name}-dist",
dependencies=[f":{name}"],
provides=python_artifact(
name=f"{name}-artifact",
version=version,
description=description_math,
author=author,
),
)
better-yacht-90735
08/16/2023, 6:22 PMhappy-kitchen-89482
08/16/2023, 7:21 PMbetter-yacht-90735
08/17/2023, 5:03 AMAmbiguousOwnerError: Found multiple sibling python_distribution targets that are the closest ancestor dependents of sunstone/math/projections_v2.py:math-core and are therefore candidates to own it: sunstone/math:math-dist, sunstone/math:math-core-dist. Only a single such owner is allowed, to avoid ambiguity. See <https://www.pantsbuild.org/v2.16/docs/python-distributions> for how python_sources targets are mapped to distributions. See <https://www.pantsbuild.org/v2.16/docs/python-distributions>.
happy-kitchen-89482
08/17/2023, 3:06 PMsunstone/math:math-dist
and sunstone/math:math-core-dist
do both depend on sunstone/math/projections_v2.py
?happy-kitchen-89482
08/17/2023, 3:10 PMbetter-yacht-90735
08/17/2023, 4:05 PMsunstone/math:math-dist
only indirectly depends on projections_v2.py considering it depends on a source file that imports projections_v2.py