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

Please ignore. #1318

Closed
wants to merge 1 commit into from
Closed

Conversation

rwgk
Copy link
Contributor

@rwgk rwgk commented Mar 6, 2025

Please refer to #1321

…TERS macros.

The include and the PYBIND11_SMART_HOLDER_TYPE_CASTERS were made obsolete by pybind/pybind11#5257 (merged on Jul 31, 2024).
Copy link

google-cla bot commented Mar 6, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@rwgk
Copy link
Contributor Author

rwgk commented Mar 6, 2025

Sorry it's stubbornly using my corporate email address for the CLA. I'll close this also. Could you please clone the diff?

@rwgk rwgk changed the title Remove all smart_holder.h includes and PYBIND11_SMART_HOLDER_TYPE_CASTERS macros. Please ignore. Mar 6, 2025
@lanctot
Copy link
Collaborator

lanctot commented Mar 7, 2025

Look at this positive success of open-source software at work.. !! The thing broke so very recently, and @tsogoo submitted a fix independently. I'm so grateful for the help, thanks to both of you.

However: @rwgk, what I need more than this fix at the moment is the simplest way for OpenSpiel to co-exist internally + externally without having two different states of the code to maintain. So, for that reason I would prefer to pin OpenSpiel's dependency downloader to an old version of the code until the Python team at Google imports the recent changes to pybind11 (i.e. something like #1315).

So is it ok with you to keep this PR around until that happens? Meanwhile I'll contact the Python team internally to let them know that this solves it? Wdyt?

@rwgk
Copy link
Contributor Author

rwgk commented Mar 7, 2025

However: @rwgk, what I need more than this fix at the moment is the simplest way for OpenSpiel to co-exist internally + externally without having two different states of the code to maintain.

That's what this PR is meant to be.

Sorry I didn't explain that here. Copying what I wrote in a chat:

First:

I'm AFK but will look later at what you have, atm I'm asking myself, could you simply remove smartholder.h includes and the obsolete macros, and it works externally with pybind11 master as is, and internally with google3 as is?

Later:

If the diff works as I hope, that will free you from having to worry about branches and commit hashes.

@rwgk
Copy link
Contributor Author

rwgk commented Mar 7, 2025

My suggestion:

Run this CI here with this PR.

Apply the same diff internally.

If both work as I hope, submit internally and done.

@lanctot
Copy link
Collaborator

lanctot commented Mar 7, 2025

That's what this PR is meant to be.

Oh, cool!! Ok, sorry -- my bad. I've been traveling and only quickly read those messages and misunderstood.

Thanks so much! I'll follow the steps you've suggested.

@lanctot
Copy link
Collaborator

lanctot commented Mar 7, 2025

Ok, can you make the same change as to open_spiel/scripts/install.sh that was done in #1319 ?

image

@rwgk
Copy link
Contributor Author

rwgk commented Mar 7, 2025

I got confused, too, I was thinking I'm writing my response under #1317 😅

And I see #1319 is yet another incarnation of the same change.

@rwgk
Copy link
Contributor Author

rwgk commented Mar 7, 2025

@lanctot if it's not too late: ideally re-open #1319 and discard #1317 and #1318.

@rwgk rwgk closed this Mar 7, 2025
@rwgk rwgk deleted the remove_smart_holder_h branch March 7, 2025 18:38
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