-
Notifications
You must be signed in to change notification settings - Fork 99
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
Update all dependencies to get more that officially support Python 3.11 #1071
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
As you have seen, Python 3.11 on Mac OS fails on getting zope.interface
5.5.1. Locally (macOS Monterey 12.6) this works fine for me.
The zope.interface Mac OS egg for Python 3.10 is built in a specific way. Just a guess: would it help to extend this to Python 3.11 and get a new release out?
Okay, you are aware of that, and there is more involved, as seen in the issue you created a week ago: zopefoundation/meta#166 |
The build story on macOS is a mess. There are several interlocking issues:
What I can say is that affected eggs like
It seems like the installation from Binary extension packages such as |
P.S.: Funny thing, and a sign of how the differences in Python interpreter setup play into it as well:
I wish I had an Intel Mac around to see if the architecture is a factor. Intel Macs should pick up the precompiled eggs as those are specifically built for |
I have a MacBook with Intel Core i9 running Monterey. This Zope branch works fine, all tox tests pass. In my eggs directory I now have |
So as I see it we have the following situation:
Is that a blocker for a Zope 5 release? I don't know how much effort there is to find and tackle the underlying ( |
@mauritsvanrees Just to be on the safe side, can you make sure your sandbox on macOS is fully clean? Like, do a |
It is fully clean now, and it still works. I may simply have enough development tools installed so that source distributions work for me as well. |
I have made some progress. My local issues with Python 3.10 are solved by rebuilding the interpreter while making sure that the The GHA runs for macOS remain a problem. Python 3.11 still fails reliably installing some packages with binary extensions. Other Python versions fail spuriously with test failures in ZCatalog and CompositeIndex, I am guessing there are race conditions. As both Maurits and I can install Zope cleanly now I suggest this PR is ready for review and merge. |
Jens Vagelpohl wrote at 2022-11-11 02:43 -0800:
...
The GHA runs for macOS remain a problem. Python 3.11 still fails reliably installing some packages with binary extensions. Other Python versions fail spuriously with test failures in ZCatalog and CompositeIndex, I am guessing there are race conditions.
I remember a "speed" test for `CompositeIndex` (it tries to check that
the use of `CompositeIndex` is more efficient than a direct approach)
which occasionally fails.
|
The speed test is one of them, correct. There's another test for a query plan where the list of returned indices is not sorted the same way as the expected list. I don't even know if that's relevant at all. See https://github.com/zopefoundation/Zope/actions/runs/3444212276/jobs/5746887732 |
Here's the current status:
Next steps:
|
The "critical" binary packages and those binary packages that depend on them have been re-released and they all have the full set of macOS I have stepped through the code in a local Python 3.10 environment that attempts to match how Python is built on those GHA runners and found one really dumb issue in Essentially, To see if this is the real issue I will experiment with leaving the |
None of my experiments have succeeded. I am caught in a series of issues in Question to @mauritsvanrees, @icemac and @d-maurer: Is it OK to "give up" when it comes to supporting oddly-built Python versions (namely, Python on macOS built with If that's OK I would do the following:
Then I will test on macOS/arm64 and will ask Maurits to test on macOS/x86_64. |
Jens Vagelpohl wrote at 2022-11-17 04:17 -0800:
...
Question to @mauritsvanrees, @icemac and @d-maurer: Is it OK to "give up" when it comes to supporting oddly-built Python versions (namely, Python on macOS built with `universal2` architecture and not the default from the platform itself, which would be `arm64` or `x86_64`)?
Neither me nor my clients have access to MAC systems.
Thus, I have no strong feeling about MAC related problems.
In all cases relevant to me, build tools are available.
Thus, binary wheels are not necessary.
…--
Dieter
|
A full solution would be nice, but I can see it will not happen soon, despite your best efforts. Thanks a lot for trying! Your plan seems the best option for now. BTW, we are planning to do the first Plone 6 release candidate today (or tomorrow). Would be cool if all those packages and Zope have releases before that. But don't stretch yourself. You have put in a lot of work already. |
I could have it all done tomorrow early afternoon. The big time drain is waiting for the GHA test runs that want to build and test Linux on Arm packages. |
Wow, it is green! Great work. |
No description provided.