square-elephant-85438
08/01/2024, 5:03 PMpython_distribution. In my monorepo, I have a package A that depends on package B (both owned by me). When I build package A, I want to build A.whl such that it includes B.whl and/or knows where to pick it up without relying on PyPI. Similar to how pip operates when we do not use the --no-deps option. But I noticed that the generated A.whl does not contain any reference to B apart from in the metadata. Does anyone know how to achieve what I want?square-elephant-85438
08/01/2024, 5:33 PMhappy-kitchen-89482
08/01/2024, 6:55 PMhappy-kitchen-89482
08/01/2024, 6:56 PMhappy-kitchen-89482
08/01/2024, 6:56 PMRequires-Dist metadata entry for B.whl, and that gets resolved at wheel install timehappy-kitchen-89482
08/01/2024, 6:57 PMsquare-elephant-85438
08/01/2024, 7:00 PMRequires-Dist metadata and pip does try to install B from PyPI when I install A.whl.
However, some of our downstream users do not have access to the internet and until we get them to use pexes, they use whls. When I use pip to generate the whls, I can leave out the --no-deps and the generated A.whl contains all the dependency whls too.
We could ship individual whls to them, but is there any way to tell pants that the whls should be all-encompassing?happy-kitchen-89482
08/01/2024, 7:03 PMhappy-kitchen-89482
08/01/2024, 7:03 PMhappy-kitchen-89482
08/01/2024, 7:03 PMhappy-kitchen-89482
08/01/2024, 7:03 PMhappy-kitchen-89482
08/01/2024, 7:03 PMsquare-elephant-85438
08/01/2024, 7:05 PMhappy-kitchen-89482
08/01/2024, 7:06 PMsquare-elephant-85438
08/01/2024, 7:08 PMsquare-elephant-85438
08/01/2024, 7:09 PMhappy-kitchen-89482
08/01/2024, 7:37 PMhappy-kitchen-89482
08/01/2024, 7:37 PMhappy-kitchen-89482
08/01/2024, 7:38 PMhappy-kitchen-89482
08/01/2024, 7:38 PMhappy-kitchen-89482
08/01/2024, 7:38 PMhappy-kitchen-89482
08/01/2024, 7:38 PM