[Zope3-Users] Re: zopeproject 0.4: using without easy_installing, egg-info error

Jeff Kowalczyk jtk at yahoo.com
Thu Sep 20 09:55:53 EDT 2007


Philipp von Weitershausen wrote:
>> Is there a pro/con list to including a bootstrap.py in zopeproject for the
>> other way of using buildout?
> 
> I don't quite understand. zopeproject works completely without needing 
> bootstrap.py. After calling zopeproject, you end up with a completely 
> bootstrapped *and* installed buildout sandbox.

This non-system python-2.4.4 has an empty site-packages, and is
owned by root. I don't have setuptools or buildout installed in the
non-system python.

When working with a z3c.formdemo checkout for example, I can start:

  # /opt/python24/python/bin/python bootstrap.py 

Without using sudo. That bootstrap process creates a local bin/buildout,
uses setuptools and zc.buildout from ~/.buildout/eggs, and the non-system
python:

  #!/opt/python24/python/bin/python

  import sys
  sys.path[0:0] = [
    '/home/myuser/.buildout/eggs/setuptools-0.6c7-py2.4.egg',
    '/home/myuser/.buildout/eggs/zc.buildout-1.0.0b30-py2.4.egg',
    ]
  
  import zc.buildout.buildout

  if __name__ == '__main__':
      zc.buildout.buildout.main()


I'm going to familiarize myself with virtualenv; I haven't yet only
because the above method seemed both convenient and clear about its use of
python environment and eggs.

Thanks.



More information about the Zope3-users mailing list