-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wheel missing files generated at build #6197
Comments
I'm also hitting this issue with a project that generates scripts to be installed. The problem seems to be that poetry-core only sources its list of scripts from local_config (in I'm probably going to do some script stubs to get around the issue. |
oh actually, maybe it is relatively simple to fix - in WheelBuilder._build look for I could probably throw a patch together tomorrow if there is interest |
FWIW I ended up with a hacky workaround: renaming the # build.py
from setuptools.command.build_py import build_py
class BuildPyCommand(build_py):
def finalize_options(self):
super().finalize_options()
self.build_lib = f"{self.build_lib}.blah"
def run(self):
...
def build(setup_kwargs):
setup_kwargs.update(
{
"cmdclass": {
"build_py": BuildPyCommand,
},
}
) |
the needed fix is probably as simple as changing that glob, then |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Python files generated during a build step (protobufs in my original case) don't make it into the wheel built with
poetry build
.I do realize based on previous discussions around here that this particular combo is perhaps somewhat non-standard:
I've put together a minimal project to demonstrate the issue at https://github.com/egorchakov/poetry-build-issue. To reproduce:
The text was updated successfully, but these errors were encountered: