More information about module http://projects.unbit.it/uwsgi/wiki/RunOnNginx If someone has half-prepared uwsgi ebuild, now is the time. Reproducible: Always
Created attachment 228679 [details] uWSGI 0.9.4.3 ebuild
I wanted to try out uWSGI with Cherokee and found this "bug" when searching for an ebuild. Since there is none I thought this would be a nice opportunity to try this whole ebuild-writing-thing. Simple ebuild for uWSGI is attached above. It only works with python-2.6 since I do not know how to handle the different python versions gracefully (uWSGI uses a different makefile for each python version). Since my tests with uWSGI were not too encouraging, I am probably not going to keep using it, though...but maybe someone can make use of that ebuild...
Created attachment 229083 [details] Nginx 0.8.36 with uwsgi and redis modules
Created attachment 229085 [details] params for nginx uwsgi module
Please try ACCEPT_KEYWORDS="~amd64" USE="nginx_modules_http_redis nginx_modules_http_uwsgi aio" emerge -av nginx works fine for me
Arfrever, can you please shed some light on how to handle building the uwsgi binary for multiple versions of python. i have tested it with python 2.6 in my overlay and it works fine, so i'd like to move this to the tree with proper python support.
I talked to few Gentoo developers and it seems the only way is to contact authors (I have no way of doing that ATM) and rewrite setup.py to use proper distutils Extension support.
Created attachment 230121 [details] uwsgi-0.9.5.ebuild Find attached a version of the ebuild that (hopefully) handles Python 2.x versions transparently. Best regards, Torsten
Makefiles only differ in version of Python interpreter, so the main Makefile (which uses 'python') can be used (python_execute_function() properly sets locally active version of Python during each iteration). Fixing of indentation in uwsgiconfig.py should be sufficent to support Python 3. uwsgiconfig.py should be fixed to respect CFLAGS and LDFLAGS (currently it uses CFLAGS of dev-lang/python).
uwsgiconfig.py should use "${CC}" instead of "gcc". It's possible to build some plugins. Example: python uwsgiconfig.py --plugin plugins/psgi
Created attachment 230169 [details] uwsgi-0.9.5.ebuild
Created attachment 230171 [details, diff] uwsgi-0.9.5-fix_uwsgiconfig.py_indentation.patch
Created attachment 230173 [details, diff] uwsgi-0.9.5-respect_flags.patch
thanks for patches and the ebuild, i have commited it to www-servers/uwsgi and added the uwsgi module to nginx-0.8.36-r1