Buildout recipe downloading, compiling and configuring uWSGI.
Project description
Buildout recipe downloading, compiling and configuring uWSGI.
Creates a bin/ uWSGI executable and parts XML configuration file with which you can easily launch Buildout sandboxed uWSGI processes.
This recipe is a fork of shaunsephton.recipe.uwsgi, in order to update it to work with recent versions of Buildout and UWSGI. All credits goes to its original authors.
Usage
Add a part to your buildout.cfg like so:
[buildout] parts=uwsgi [uwsgi] recipe=infrae.uwsgi
Running the buildout will download and compile uWSGI and add an executable with the same name as your part in the bin/ directory. In this case bin/uwsgi. It will also create a uwsgi.xml configuration file in a parts directory with the same name as your part. In this case bin/uwsgi/uwsgi.xml.
This allows you to start a uWSGI process configured by the generated XML file, i.e.:
$ ./bin/uwsgi --xml parts/uwsgi/uwsgi.xml
The generated XML configuration includes pythonpath directives referencing the various Python eggs installed by Buildout allowing uWSGI to utilize them.
You can specify any and all additional uWSGI configuration options as additional options of the Buildout part. For instance to specify a socket and module and to enable the master process add socket, module and master options to the buildout part, i.e.:
[buildout] parts=uwsgi [uwsgi] recipe=infrae.uwsgi socket=127.0.0.1:7001 module=my_uwsgi_package.wsgi master=on
You can also provided a set of eggs explicitly using the eggs option, i.e.:
[buildout] parts=uwsgi [uwsgi] recipe=infrae.uwsgi download-url=http://projects.unbit.it/downloads/uwsgi-1.4.9.tar.gz eggs=my_uwsgi_package
Changes
1.0 (19-08-2013)
Initial version as a fork of shaunsephton.recipe.uwsgi. Update the recipe to work with recent version of uwsgi and buildout, improve the configuration options and prevent uwsgi to be downloaded and compiled each time buildout is ran.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file infrae.uwsgi-1.0.tar.gz
.
File metadata
- Download URL: infrae.uwsgi-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3026c0b4b51403aff0ab7da148f507a3a42eff688069748e3651166b4c8bcf2e |
|
MD5 | 4c0f59f6ad1f7c98f1ef7915604dad41 |
|
BLAKE2b-256 | 247e1a8e9ff3a7e06995a6fefc8b9ddad4ffbdaeb2fd7fa65c857296558da602 |