Replies: 1 comment
-
|
So to expand on this and provide some examples, I have an example repo with 3 branches: https://github.com/idex-biometrics/protobuf-grpc-distutils-example Branch: main Branch: deep-src-layout Branch: flat-layout I've just updated my Branch: flat-layout (with MANIFEST.in) So I can work around this by using a flat-layout but what is the correct way to include auto-generated Python packages in a wheel? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm auto-generating Python packages as a build step inserted before
build_pybut am failing to find a way to getsetuptoolsto rerun the discovery phase.What I've done is define a new
setuptools.Commandand then in my target package I add the following line:When I
pip installmy package, I can see that my build step runs after the point at which thesrctree is parsed for packages. I've tried callingself.distribution.set_defaults(force=True)but whendiscovery:_analyse_package_layout()is called,discovery:_explicitly_specified()returns true. This seems to be due to the first discovery step settingdiscovery.dist.packages. The comments here seemed to suggest that my force should work.My directory structure has a placeholder
srcdirectory that look like this:and then following auto-generation:
Should I be able to do this or am I doing something silly?
Beta Was this translation helpful? Give feedback.
All reactions