Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling custom uWSGI / using existing CMMI recipe #9

Open
davidjb opened this issue May 6, 2013 · 3 comments
Open

Compiling custom uWSGI / using existing CMMI recipe #9

davidjb opened this issue May 6, 2013 · 3 comments

Comments

@davidjb
Copy link

davidjb commented May 6, 2013

I've come to needing to customise my environment ($PATH specifically) when installing uWSGI such that it is able to locate a custom installed version of libxml2 (installed via Buildout) and build against that. This is somewhat easily solved by setting the $PATH either before running Buildout (or using collective.recipe.environment) - thought not easily reproducible or necessarily easily managed.

This lead me to thinking about the potential of having this recipe leverage another that can offload the downloading, configuring and installing uWSGI. buildout.recipe.uwsgi is effectively doing cmmi, so my thinking behind this is to reduce code duplication (downloading/extraction/compilation/removal done already), and inline with my actual issue, allow full configuration of the build process. For instance, extending off https://pypi.python.org/pypi/hexagonit.recipe.cmmi#supported-options would give environment as an option, and many others, allowing for fine grained control over how uWSGI gets built. There are other cmmi recipes out there too, but that one seemed to be one of the most featureful/active at present.

Thoughts?

@lcosmin
Copy link
Owner

lcosmin commented May 22, 2013

Sorry for the late reply, I don't have so much free time lately :( Your idea sounds interesting, but I can't help thinking that using cmmi might be a bit overkill...Anyway, could you provide me with an example of another recipe using cmmi to see how that would look like ?

@davidjb
Copy link
Author

davidjb commented May 27, 2013

Here's an example that uses hexagonit's cmmi recipe: https://github.com/collective/pretaweb.recipe.perl/blob/master/pretaweb/recipe/perl/__init__.py -- that's pretty much what I had in mind. Effectively something that just wraps up uWSGI install process, but allows the base recipe to fully configure the build and environment.

@apoh
Copy link

apoh commented Oct 24, 2013

I've a very similar problem. I like to compile uwsgi with a specific python-version but the Makefile og uwsgi is only dealing with "python". I've send a pull-request to ubit that solves this fact unbit/uwsgi#426 Maybe we can find together a solution, when this is merged!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants