#11893 Move iocp dependency to Windows specific soft dependencies. #12144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Scope and purpose
Fixes #11893
This is done so that
pip install twisted
will no longer depend on our IOCP support.The IOCP support package might get outdate, as we don't have an active maintainer for Twisted IOCP reactor.
This is a backward incompatible change... as those who wanted IOCP support, will now have to install it expliclitly.
I am not sure how to make this change in a backward compatible way.
What we can do, is to add a big warning at the top of the release notes and in the release email
How to test
Manual checks without IOCP
On Windows, get this branch and then run
pip install .
Check that IOCP is not installed
You can run the same test on Linux, to make sure IOCP is not installed... just to be extra safe :)
Manual checks with IOCP
On Windows, get this branch and then run
pip install .[windows-platform]
Check that IOCP is installed
CI checks
The iocp support is automatically installed in our CI via tox "-window-" environment marker
https://github.com/twisted/twisted/actions/runs/8895048158/job/24424587427?pr=12144#step:10:35