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

Set pybind11 to ValeevGroup/v2.11 #283

Merged
merged 3 commits into from
Dec 12, 2023
Merged

Set pybind11 to ValeevGroup/v2.11 #283

merged 3 commits into from
Dec 12, 2023

Conversation

asadchev
Copy link
Collaborator

No description provided.

@evaleev evaleev force-pushed the asadchev/pybind2.11 branch from c3ebf60 to 9fd7d79 Compare November 25, 2023 06:16
@evaleev
Copy link
Owner

evaleev commented Nov 26, 2023

for some reason py3.12 is picked up again in https://github.com/evaleev/libint/actions/runs/6987480217/job/19014069994?pr=283#step:14:153 .. I thought #280 addressed this by pinning to 3.11 MacOS CI jobs ..

@asadchev
Copy link
Collaborator Author

asadchev commented Nov 26, 2023 via email

@evaleev
Copy link
Owner

evaleev commented Nov 26, 2023

I think easiest is for me to fix it. Is there MAC i can use?

I think this is not related to MacOS, but due to the use of py3.12 ... try running pylibint tests built w/ py3.12 on Linux

@evaleev
Copy link
Owner

evaleev commented Nov 26, 2023

I see master has macOS python tests disabled per #280, you reenabled them in 77c26cc ... the issue is pylibint w/ py3.12 does not seem to work (recall the GIL check failure)

@loriab
Copy link
Collaborator

loriab commented Nov 26, 2023

Is it the intent that only the ValeevGroup fork of pb11 (and never a generic upstream release) is suitable for pylibint? If so, perhaps find_package(pybind11 2.6.0 CONFIG) should be commented out.

@evaleev
Copy link
Owner

evaleev commented Nov 27, 2023

Is it the intent that only the ValeevGroup fork of pb11 (and never a generic upstream release) is suitable for pylibint? If so, perhaps find_package(pybind11 2.6.0 CONFIG) should be commented out.

there is only 1 extra file we need on top of stock pb11 (pybind/pybind11@42b42ce), for handling boost::container::small_vector ... unfortunately we can'd PR upstream since it's too specialized. We need this across the board (e.g. in https://github.com/ValeevGroup/tiledarray). Unfortunately there is no good way to reuse a single file across multiple packages without creating the extra boilerplate to maintain. We are considering submodules. We manually prepare releases, so the inability of GitHub to package submodules source into releases (dear-github/dear-github#214) does not affect libint.

Comments are welcome.

@asadchev
Copy link
Collaborator Author

asadchev commented Nov 27, 2023 via email

@loriab
Copy link
Collaborator

loriab commented Nov 27, 2023

Is it the intent that only the ValeevGroup fork of pb11 (and never a generic upstream release) is suitable for pylibint? If so, perhaps find_package(pybind11 2.6.0 CONFIG) should be commented out.

there is only 1 extra file we need on top of stock pb11 (pybind/pybind11@42b42ce), for handling boost::container::small_vector ... unfortunately we can'd PR upstream since it's too specialized. We need this across the board (e.g. in https://github.com/ValeevGroup/tiledarray). Unfortunately there is no good way to reuse a single file across multiple packages without creating the extra boilerplate to maintain. We are considering submodules. We manually prepare releases, so the inability of GitHub to package submodules source into releases (dear-github/dear-github#214) does not affect libint.

Comments are welcome.

Ok, thanks for the clarification. The forked source doesn't bother me at all, since psi4/c-f don't use/package pylibint; I mostly deal with pylibint in CI. I just wanted to make sure the find_package(pybind11) line (added in #268) wasn't going to interfere with your intent.

@evaleev
Copy link
Owner

evaleev commented Nov 28, 2023

@asadchev btw, relevant: looks like pybind11 can use targets provided by FindPython if it's loaded before pybynd11: https://pybind11.readthedocs.io/en/stable/cmake/index.html#new-findpython-mode

@evaleev evaleev force-pushed the asadchev/pybind2.11 branch 3 times, most recently from c6bb1ca to 3773f5c Compare December 12, 2023 04:06
@evaleev evaleev merged commit a2cf567 into master Dec 12, 2023
12 checks passed
@evaleev evaleev deleted the asadchev/pybind2.11 branch December 12, 2023 04:06
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.

3 participants