Skip to content

Wheel missing files generated at build #6197

@egorchakov

Description

@egorchakov
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOS 12.3k
  • Poetry version: 1.2.0b3
  • Link of a Gist with the contents of your pyproject.toml file:

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:

[tool.poetry.build]
generate-setup-file = true
script = "build.py"

I've put together a minimal project to demonstrate the issue at https://github.com/egorchakov/poetry-build-issue. To reproduce:

  1. clone the repo:
git clone https://github.com/egorchakov/poetry-build-issue
cd poetry-build-issue
  1. build:
make cleanbuild
  1. unzip the resulting wheel:
unzip dist/*.whl -d dist/wheel
  1. observe that the wheel is missing a file generated during a build step:
 ls dist/wheel/poetry_build_issue/generated

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/build-systemRelated to PEP 517 packaging (see poetry-core)kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions