Search code examples
pythonuwsgi

uwsgi, build python plugin with custom python instalation


I want to build python_plugin for uwsgi from my custom python installation under directory /opt/python36. How can I set the path to that python during build time? I run command bellow, but the plugin is assembled with Python 2.7 that is shipped with OS Cent 7.

PYTHON=python3.6; /usr/sbin/uwsgi  --build-plugin 
"/usr/src/uwsgi/2.0.15/plugins/python/ python36" 

Solution

  • Just cd into desired directory:

    cd /opt/python36 && uwsgi --build-plugin "/usr/src/uwsgi/plugins/python python36"