On 16-08-11 17:46, Sebastien Douche wrote:
On Tue, Aug 16, 2011 at 13:45, Reinout van Rees<[email protected]>  wrote:
>    recipe = zc.recipe.egg
zc.recipe.egg can handle the new buildout options? When I want system
packages I use z3.recipe.scripts :
http://pypi.python.org/pypi/z3c.recipe.scripts/

I'm pretty sure zc.recipe.egg can, as it is bundled with buildout itself! But I *did* test out z3c.recipe.scripts and I had the same problem: buildout would try and build numpy from source.

And numpy for sure is installed (and osc.recipe.sysegg finds it just fine):

  $ python
  Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51)
  [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import numpy
  >>> numpy.__file__

'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/__init__.pyc'


And my bin/buildout is:

  $ cat bin/buildout

#!/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python -S

  import sys
  sys.path[0:0] = [
      '/private/tmp/numpytest/parts/buildout',
      ]


  import os
  path = sys.path[0]
  if os.environ.get('PYTHONPATH'):
      path = os.pathsep.join([path, os.environ['PYTHONPATH']])
os.environ['BUILDOUT_ORIGINAL_PYTHONPATH'] = os.environ.get('PYTHONPATH', '')
  os.environ['PYTHONPATH'] = path
  import site # imports custom buildout-generated site.py

  import zc.buildout.buildout

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


And just to make sure, here's my buildout.cfg:

  [buildout]
  parts = scripts
  include-site-packages = true
  allowed-eggs-from-site-packages =
      numpy

  [scripts]
  recipe = zc.recipe.egg
  eggs =
      numpy



Anyone spot anything suspicious?


Reinout

--
Reinout van Rees                    http://reinout.vanrees.org/
[email protected]             http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to