You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
Issue
Does poetry use the [build-system] section in pyproject.toml? I see it parsed in PyProjectTOML, but I don't see anything in poetry or poetry-core using that property.
I do see tool.poetry.build, which is used in WheelBuilder, but it isn't documented:
Ideally, I would want to be able to run poetry build -f wheel using a custom build.py backend (that does some actions before calling the usual build in poetry-core) with some version of:
If poetry doesn't use [build-system], why not? What should be used instead? Is tool.poetry.build the way to define a custom build? If so, why isn't it documented?
Since this issue is closed, does that mean poetry does support building wheels with C extensions? Are the docs here outdated, saying only pure python wheels are supported?
There are plans to add support for different build backends, but for now, there is no stable or documented API for that. You can try looking at Pendulum, it uses some hacks and build.py script to build C extensions.
I suspect you are not really looking for "build-system". This section is not directly used by Poetry. It is used by PEP 517 front ends like pypa/build or pip.
Issue
Does poetry use the
[build-system]
section inpyproject.toml
? I see it parsed inPyProjectTOML
, but I don't see anything inpoetry
orpoetry-core
using that property.I do see
tool.poetry.build
, which is used inWheelBuilder
, but it isn't documented:poetry/tests/fixtures/extended_project_without_setup/pyproject.toml
Lines 23 to 25 in b753aaf
Ideally, I would want to be able to run
poetry build -f wheel
using a custombuild.py
backend (that does some actions before calling the usual build inpoetry-core
) with some version of:If poetry doesn't use
[build-system]
, why not? What should be used instead? Istool.poetry.build
the way to define a custom build? If so, why isn't it documented?Related issues:
poetry build -f wheel
broken for C extensions #1332The text was updated successfully, but these errors were encountered: