Skip to content

[build-system] contents not honored #4871

@bsvedin

Description

@bsvedin
  • 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: Windows 10

  • Poetry version: 1.1.12 - also tried 1.2.0a2

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/bsvedin/0b705d54dec6d1834cd2f2864b86cd9d

Issue

The contents of the [build-system] do not appear to be honored.
Specifically Nuitka (version 0.6.18) recently added the build meta for creating compiled whl files.
Updating the build-system section should be all that is required

[build-system]
requires = ["setuptools>=42", "wheel", "nuitka"]
build-backend = "nuitka.distutils.Build"

running "poetry build -f wheel" still builds readable source code wheel file

poetry build -f wheel
Building hello-world-example (0.1.0)
  - Building wheel
  - Built hello_world_example-0.1.0-py3-none-any.whl

I have tried putting in nonsense in as well for the requires and build-backend values and it still builds the whl file without throwing an error.
e.g.
requires = ["l;kasdhfiosadhf", "wheel", "nuitka"]
build-backend = "l;kdsajosadhfl;ksdzxn"

It does throw an error if there are multiple entries for requires or build-backend saying TOMLError key already exists
e.g.
requires = ["setuptools>=42", "wheel", "nuitka"]
build-backend = "nuitka.distutils.Build"
build-backend = "poetry.core.masonry.api"

Metadata

Metadata

Assignees

No one assigned

    Labels

    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