Skip to content
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

Move pybind11 from submodule to pyproject.toml:build-system.requires. #171

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hzhangxyz
Copy link

Since we can specify setup dependencies in pyproject.toml, pybind11 could be added here instead of placed directly under the root of the repo, which make the repo structure more compact. And the path of pybind11 cmake config could be set by pybind11_DIR in setup.py.

Since we can specify setup dependencies in pyproject.toml, pybind11
could be added here instead of placed directly under the root of the
repo, which make the repo structure more compact. And the path of
pybind11 cmake config could be set by pybind11_DIR in setup.py.
@hzhangxyz
Copy link
Author

Is there any body know how to install pybind11 when checking format in precommit?

@henryiii
Copy link
Collaborator

henryiii commented Dec 14, 2023

Yes, you can add it to the .pre-commit-config.yaml file. See https://learn.scientific-python.org/development/guides/style/#type-checking.

On the pyproject.tmol, this is shown in the scikit_build_core example, and new projects should really be using that instead, and having different mechanisms broadens the overall scope of the examples. Though I think it does make sense here, so I'd still be in favor. Can see if any other maintainers have opinions.

@hzhangxyz hzhangxyz marked this pull request as ready for review December 14, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants