flask-uwsgi-websocket icon indicating copy to clipboard operation
flask-uwsgi-websocket copied to clipboard

Remove setup.py dependency on uwsgi

Open danmichaelo opened this issue 5 years ago • 1 comments

This might at first sound like a silly request, but there are many ways to install uwsgi, and not all are understood by pip. If I have uwsgi installed through a package manager (apt install uwsgi uwsgi-plugin-python3 on Debian), I don't want to install another copy of uwsgi when I install Flask-uWSGI-WebSocket. Especially since uwsgi installation through pip is sometimes non-trivial, requiring a compiler and several libraries to be found.

With pip, I can use pip install Flask-uWSGI-WebSocket --no-deps to avoid uwsgi, but with pipenv no such flag seems to be available, so this is why I'm suggesting to remove uwsgi from setup.py.

danmichaelo avatar Apr 19 '19 14:04 danmichaelo

Another reason for wanting this is that if you use async then uwsgi has to be installed like so:

CFLAGS="-I/usr/local/include/python3.7/" UWSGI_PROFILE="asyncio" pip3 install --upgrade --force-reinstall --no-binary :all: uwsgi

There is no way to instruct pipenv, or in my case, poetry to do this -- currently I am therefore always installing uwsgi twice -- first the incorrect version and then the correct version over the top.

frankier avatar Apr 23 '19 11:04 frankier