HomePhabricator

toollabs: Add python3 support to uwsgi web services

Description

toollabs: Add python3 support to uwsgi web services

Exact same code / params are used.

Change-Id: I5e07730e6fa7055b647f4948cc10b1db8c07e5ec

Event Timeline

Added inline note related to a possible T104374: support python3 uwsgi apps fix that would allow this to be re-applied.

/modules/toollabs/files/tool-uwsgi-python
28

The fix found in T104374#1911373 (via https://github.com/unbit/uwsgi/issues/621#issuecomment-132635247) is to change this to '--mount', '/%s=app:app' % TOOL for python3. This should be tested to see if it works for python2 as well.

Ricordisamoa added inline comments.
/modules/toollabs/files/tool-uwsgi-python
28

It'd be even better if the module and callable were customizable from the webservice2 command.