-
Notifications
You must be signed in to change notification settings - Fork 258
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
Feature Request Please support poetry build backend #916
Comments
You can set build backends using That said, I don't think that poetry supports platform wheels, so you don't need cibuildwheel. pypa/build is probably what you want. |
I'm working on a proposal that would include a Poetry plugin to build binaries, but as far as I know, there is no support for binaries in Poetry - they don't support what we do; we would support them if they chose to do so. We use pip or build to do the building, so any PEP 517 tool (like Poetry) works, just as long as it makes binary (platform) wheels. |
@henryiii Thank you very much for the detail answer! Is there any chance to use complete |
Poetry is the build system. If you skip it, you'd just end up doing nothing at all. Currently there are a limited number of build systems that support building compiled code. setuptools/distutils, scikit-build, pyo3 (Rust), enscons. I've also seen a pdm example that shows how to use setuptools to do the extension compile inside pdm (pdm is very much like Poetry, except it supports standards like PEP 621 that poetry does not yet). Meson should gain support soon, too, I think. Poetry ideally will support compiling via plugins eventually (as I said, I'd probably be writing one for scikit-build if my proposal gets accepted), but it doesn't now. Also, cibuildwheel will never be a build system, and any new tools should use PEP 621 configuration and not something Poetry specific. |
Thx, that helps a lot! |
You might like https://stackoverflow.com/questions/60073711/how-to-build-c-extensions-via-poetry/60163996#60163996 There's a page on PDM about this too, https://pdm.fming.dev/pyproject/tool-pdm/#build-c-extensions |
It is possible to build platform-specific binaries using Poetry, although it is not officially supported yet (see python-poetry/poetry#2740). |
That that should work just fine in cibuildwheel - we check for pyproject.toml or setup.py already - you don't have to have a setup.py. |
Description
I use poetry primarily please support poetry as a backend
Build log
No response
CI config
No response
The text was updated successfully, but these errors were encountered: