rvanlaar / djangorecipe

A django recipe for buildout
67 stars 44 forks source link

Support system python #56

Closed mbld closed 10 years ago

mbld commented 12 years ago

Hi Roland,

i am using djangorecipe 1.3 with buildout 1.6.3. It works fine but when i tried to use the following buildout settings they don't work as expected.

include-site-packages = true
exec-sitecustomize = false
allowed-eggs-from-site-packages =
    lxml
    PIL

Turns out djangorecipe needs to be updated to support a system python and these settings. I updated djangoreipe according to the buildout docs: http://pypi.python.org/pypi/zc.buildout/1.6.3#updating-recipes-to-support-a-system-python

Maybe these changes are useful for you and other peoples so feel free to merge them back into your project.

This is my first time contributing to a foreign project, so please be patient if i did something wrong ;)

Best regards, Martin

reinout commented 12 years ago

The python system packages stuff in buildout 1.5/1.6 is pretty complicated and caused a lot of grief. Jim Fulton subsequently took it out again in what's-soon-to-be-2.0alpha. "If you want to isolate from a system python, do it yourself with a virtualenv or so" was the opinion.

So: do we want this in djangorecipe? Does it still work with buildout 1.4.4? That last one is probably the easiest to verify.

rvanlaar commented 11 years ago

Reinout and mbld: Is this still a problem in buildout 2?

If it is I think we need to add support for it in djangorecipe.

reinout commented 11 years ago

On the python dist mailinglist I heard that z3c.recipe.scripts doesn't work with buildout 2. Effectively, buildout 1.4.4 and 2.0 are the only ones I care about. Mostly 2.0. So this patch isn't needed anymore.

reinout commented 10 years ago

Closing it; buildout 2.x works fine now.

For dragging system-wide python packages into your buildout, take a look at https://pypi.python.org/pypi/syseggrecipe