dry-orange-3870
07/06/2023, 3:27 PMNaively, you might think that a python_distribution publishes all the code of all the python_source targets it transitively depends on
I really like how pants is smart when it builds wheels via pants package
. However, I'm working on a plugin that requires me to build a wheel file that has all source from a set of source roots present in it. This wheel shouldn't point at any third party or first party dependencies. Is there a Get
that I can write to convince pants to build this "uber-wheel" file for me?happy-kitchen-89482
07/06/2023, 3:33 PMhappy-kitchen-89482
07/06/2023, 3:33 PMdry-orange-3870
07/06/2023, 3:37 PMdry-orange-3870
07/06/2023, 3:41 PMdry-orange-3870
07/06/2023, 3:42 PMdry-orange-3870
07/06/2023, 4:30 PMPythonSourceFiles
, can I create a DistBuildRequest
to build the wheel that I'm looking for?happy-kitchen-89482
07/06/2023, 5:57 PMhappy-kitchen-89482
07/06/2023, 5:57 PMhappy-kitchen-89482
07/06/2023, 6:01 PMhappy-kitchen-89482
07/06/2023, 6:01 PMhappy-kitchen-89482
07/06/2023, 6:01 PMdry-orange-3870
07/06/2023, 7:48 PMA python_distribution() target will build a wheel containing all the code it depends on, transitively, that is not owned be some other python_distribution() target.Yeah, I saw that on the "building distributions" page too and that's a really cool feature. Unfortunately, we are publishing multiple wheels. It's just that we also have a use case where it'd be great to just make an uber-wheel that holds our source files and doesn't reference any other 1st or 3rd party dependencies
happy-kitchen-89482
07/06/2023, 7:56 PMdry-orange-3870
07/06/2023, 8:26 PMPythonSourceFiles
which has all of the target sources and source rootshappy-kitchen-89482
07/07/2023, 3:13 AMdry-orange-3870
07/07/2023, 1:23 PMhappy-kitchen-89482
07/08/2023, 9:56 PMhappy-kitchen-89482
07/08/2023, 9:56 PMhappy-kitchen-89482
07/08/2023, 9:56 PMhappy-kitchen-89482
07/08/2023, 9:56 PMdry-orange-3870
07/12/2023, 2:43 PM