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
SANIC_NO_UVLOOP=true doesn't seem to work #2223
Comments
After some checking, I think the reason is because the wheel doesn't have a setup.py and so when you install via a wheel it doesn't ever do this check https://github.com/sanic-org/sanic/blob/main/setup.py#L138 |
One of the things that has been a question for a long time on this project is how to gracefully handle this. Obviously, the best scenario would be if pip supported subtractive
This (to my knowledge) is still not a supported feature. The problem is that we do want
Not ideal, but in CI it is not terrible. If you have some other thoughts or suggestions, please let me know. |
can we make it so that sanic chooses to use it at runtime rather than forced on us at import time? i.e. I can set an environment variable or sanic option that makes it not set uvloop? that way uvloop can be in the environment, but sanic can choose to not use it |
i.e. move Line 51 in b1b12e0
|
Yeah, that can probably work fine. I did something similar with Probably |
Awesome! Thank you so much :) |
Hope it works! :) |
Thanks ❤️ |
Describe the bug
Installing sanic with a SANIC_NO_UVLOOP=true in my environment still results in uvloop being installed
Environment (please complete the following information):
Additional context
Python 3.9.6
The text was updated successfully, but these errors were encountered: