[Zope-dev] Buildout - including per-user site-packages dir.
Hi, I'm trying to configure buildout.cfg so that paster looks for eggs in my home folder's site packages directory, as per PEP 370[1]. In buildout.cfg, I have the line: include-site-packages = true But packages I've installed in my home folder aren't found when my app is run (with paster). Is there an extra buildout option, which will allow searching of home folders? Alternatively, I just noticed I have an empty sitecustomize.py file in parts/etc/, but I have no 'sitecustomize.py.in' file in etc/. If I do add a 'sitecustomize.py.in' file to etc/, what extra steps will be required, for 'sitecustomize.py.in' to get copied over to 'parts/etc/'? Cheers, Alex p.s. versions.cfg in use: http://grok.zope.org/releaseinfo/1.5.5/versions.cfg [1]: http://www.python.org/dev/peps/pep-0370/ ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Buildout - including per-user site-packages dir.
Hi, I'm trying to configure buildout.cfg so that paster looks for eggs in my home folder's site packages directory, as per PEP 370[1]. In buildout.cfg, I have the line: include-site-packages = true But packages I've installed in my home folder aren't found when my app is run (with paster). Is there an extra buildout option, which will allow searching of home folders? Alternatively, I just noticed I have an empty sitecustomize.py file in parts/etc/, but I have no 'sitecustomize.py.in' file in etc/. If I do add a 'sitecustomize.py.in' file to etc/, what extra steps will be required, for 'sitecustomize.py.in' to get copied over to 'parts/etc/'? Cheers, Alex [1]: http://www.python.org/dev/peps/pep-0370/ p.s. versions.cfg in use: http://grok.zope.org/releaseinfo/1.5.5/versions.cfg ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Buildout - including per-user site-packages dir.
AFAIK, you just need to create a .buildout directory in your home directory, put the file default.cfg in it with this content: [buildout] eggs-directory = /home/YOURS/.buildout/eggs download-cache = /home/YOURS/.buildout/downloads extends-cache = /home/YOURS/.buildout/extends and create the directories referenced here. cheers, johannes On Die, 2013-06-25 at 18:06 +0100, Alex Leach wrote: Hi, I'm trying to configure buildout.cfg so that paster looks for eggs in my home folder's site packages directory, as per PEP 370[1]. In buildout.cfg, I have the line: include-site-packages = true But packages I've installed in my home folder aren't found when my app is run (with paster). Is there an extra buildout option, which will allow searching of home folders? Alternatively, I just noticed I have an empty sitecustomize.py file in parts/etc/, but I have no 'sitecustomize.py.in' file in etc/. If I do add a 'sitecustomize.py.in' file to etc/, what extra steps will be required, for 'sitecustomize.py.in' to get copied over to 'parts/etc/'? Cheers, Alex [1]: http://www.python.org/dev/peps/pep-0370/ p.s. versions.cfg in use: http://grok.zope.org/releaseinfo/1.5.5/versions.cfg ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- programmatic web development di(fh) johannes raggam / thet python plone zope development mail: off...@programmatic.pro web: http://programmatic.pro http://bluedynamics.com signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Buildout - including per-user site-packages dir.
Hi Johannes, Thanks for the reply. On Tue, 25 Jun 2013 19:13:15 +0100, Johannes Raggam raggam...@adm.at wrote: AFAIK, you just need to create a .buildout directory in your home directory, put the file default.cfg in it with this content: [buildout] eggs-directory = /home/YOURS/.buildout/eggs download-cache = /home/YOURS/.buildout/downloads extends-cache = /home/YOURS/.buildout/extends and create the directories referenced here. I saw that, but the packages I've installed into '~/.local/lib/python...' aren't (yet) on PyPi, so this isn't really what I need. I've actually got it working now, without any new sitecustomize.py file.. I think changing the package recipe in buildout.cfg fixed it, but it could have been something I did in configure.zcml.in, as I've been separating some things out into other namespace packages recently, and that was one file that needed tweaking. The buildout configuration that seemed to fix this, was to add 'recipe = zc.recipe.egg:scripts' to my package's section, and 'allowed-eggs-from-site-packages = peak' to the `[buildout]` section. That second one also helped resolve some dependency / conflict issues I was having with PasteScript - I also have it installed system-wide for some reason - and seems to reduce the need for duplicating some system packages. I like it :) Thanks again, Alex ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )