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.
-
Hi there,
I'm auto-generating Python packages as a build step inserted before
build_py
but am failing to find a way to getsetuptools
to rerun the discovery phase.What I've done is define a new
setuptools.Command
and then in my target package I add the following line:When I
pip install
my package, I can see that my build step runs after the point at which thesrc
tree 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
src
directory 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