-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Building pybind11 error. #9628
Comments
seems pretty clear? You are using tooling that expects a PEP 621 compliant |
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 |
you are also using setuptools, apparently setuptools requires a pep621 pyproject.toml nb build.py is unsupported and at your own risk / discretion #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. |
Thank you for the explanation. |
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
The text was updated successfully, but these errors were encountered: