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.
Current logic requires old setuptools on py3.8 up to py3.11. So if new setuptools is installed, importing unicorn always fails with ImportError on these Python versions.
It now tries to use old setuptools on py3.8, but falls back gracefully to not using anything.
So it works on py3.9+ fully, and on py3.8 it also works but with more limited path discovery (I think it is enough, since no one complained yet).
Fixes: 0c34496a395eac567dc24eb6574550938a52b126 ("Modify canonicals import")
Ref: Gallopsled/pwntools#2556