-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Scratch PR for testing pybind11 v2.10.0 with Python 3.11rc2 #4271
Conversation
…ybind#4119) * Add debug fprintf to test_interpreter.cpp * Update `sys.path` from `PYTHONPATH` in Python >= 3.11 branch of `initialize_interpreter()` * Use `config.isolated = 0; config.use_environment = 1;` As suggsted by @vstinner here: pybind#4119 (comment) * Add `TEST_CASE("PYTHONPATH is used to update sys.path")` * Fix clang-tidy error. * Use `_putenv_s()` under Windows. * Fix clang-tidy error: argument name ... in comment does not match parameter name * Remove slash from PYTHONPATH addition, to work around Windows slash-vs-backslash issue. * Use `py::str(...)` instead of `.attr("__str__")` as suggested by @Skylion007 Co-authored-by: Aaron Gokaslan <[email protected]> Co-authored-by: Aaron Gokaslan <[email protected]>
Ugh, the CI isn't doing what I wanted, it's still using all of current master. |
… test (pybind#4119)" This reverts commit 2488530.
v2.10.0 + PR #4119 passes the Upstream testing (using Python 3.11rc2). PR #4119 is my own PR, I created it because I had an issue with my scons-based build & test environment that nobody else is using AFAIK. How many people in other situations are affected by the "embedding & PYTHONPATH" issue? I'll try again with pure v2.10.0. |
There is already an v2.10 branch, you should start with that. There are several other important bugfixes that we have been promising users. I'd don't see what the point of this PR is. Version 2.10.1 (Oct 2?, 2022)Changes:
Bug fixes:
Performance and style:
Build system improvements: |
I was just looking through the changelog while waiting for the current CI run to finish. The Upstream job just finished, passing with pure v2.10.0. The only change obviously specific to Python 3.11 is #4119. All other changes appear to be general bug fixes or small enhancements. Is #4119 enough justification to rush out 2.10.1 by Monday? Am I missing something? I still believe the 2.10.1 release only distract us and many others from making a clean move, resolving the doubts about ABI compatibility, and removing the I don't want to stop you from making the release, but based on what I know at the moment, I'd definitely want to remove my name from README.rst on the v2.10 branch. Also, there needs to be a very prominent warning pointing out the ABI doubts, and the |
We don't have any proof about the ABI compatibility. We have a couple of hard-to-reproduce reports from users. Many pybind11 users don't use the ABI compatibly feature at all. And 3.10.1 isn't any worse than 3.10.0 (that's the point of patch release, only small improvements). |
I've just realized I've been pushing the 2.10 branch to my fork. So it's not quite as "official" if there's something you don't want in it. But to me all those things look like good fixes to have - I'm particularly fond of several of the packaging related ones, since I've been telling vcpkg and a few others that there would be a fix for them soon. |
FWIW, I've been using smart_holder 6df8693 for about a month or so on 3.11rcX, haven't seen anything unusual. |
Scratch PR for testing pybind11 v2.10.0 + cherry picks with Python 3.11rc2, to answer the question:
What is the minimum we'd need to do for 3.11?
Related discussion: #4218 (comment)