Closed lunathanael closed 2 months ago
project
must contain ['name'] properties
seems pretty clear?
You are using tooling that expects a PEP 621 compliant pyproject.toml
, so you had better provide one.
I already have a [tool.poetry] section with a name provided. Stack overflow on poetry suggested that only one section should be provided. I've also previously tried adding a separate [project] section with name and etc defined, but it also had. It's own slew of errors.
Let me know if I am mistaken or what I should try! Thank you for the suggestion and insight!
And, #3332
please see PEP621
The pep you specified does require a Project section, with a note about this, what should a correct pyproject.toml for poetry look like then? As I've never come across one with a [project] section. Thank you for the response!
I cannot give a more precise answer than: please see PEP621
Using Poetry's init command, doesn't specifiy a [Project] section, I understand PEP621 as a resource for understanding the pyproject metadata specifications, however, PEP621 is a historical document, and even within PEP621, it does not explicitly require a [project] section to be defined, specifically if the build backend will dynamically provide the keys. From my understanding, I am using poetry-core as a build backend, but also using setup tools via generate-setup-file = true
, I'm not sure what exactly I am looking for within the resource you provided. If you could provide something more specific in terms of what I am missing either in a file or a mistake I've made elsewhere, I would be very appreciative. Thank you for your guidance!
you are also using setuptools, apparently setuptools requires a pep621 pyproject.toml
nb build.py is unsupported and at your own risk / discretion https://github.com/python-poetry/poetry/issues/2740
I understand, thank you for the concise answer and fast response as always. Without using build.py or setup.py, how can one build extensions such as pybind11 with poetry? Resources I've found all point to build.py.
yes, but it is not supported. If you want to use a tool where maintainers do support building extensions - not poetry.
If you want to use a tool where maintainers do support building extensions - not poetry.
Thank you for the explanation.
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.
Description
I cannot build c++ for pybind11 with
poetry build
. I've looked at multiple issues referencing this such as #7553, but I'm meeting errors that haven't been documented.It looks like my installations might've been mixed with another project? Honestly, I'm not sure what is going on or if this is an issue with build.
I'm not sure what direction to go next, any help is welcome and appreciated!
Workarounds
Don't build.
Poetry Installation Method
pipx
Operating System
Windows 11
Poetry Version
1.8.3
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
logs: logs.txt