On Fri, Apr 05, 2013 at 12:11:18PM -0300, Chris Withers wrote:
> On 05/04/2013 11:52, Chris Withers wrote:
> >Hi All,
> >
> >This is driving me nuts, I hope someone can help.
> 
> Okay, so using my cunning buildout knowledge (huh!) I tried this:
> 
> [buildout]
> develop = . ../xlrd ../xlwt
> parts = test py docs
> versions = versions
> 
> [versions]
> distribute=0.6.35
> <snip>
> 
> buzzkill:xlutils chris$ bin/buildout
> Develop: '/Users/chris/LocalGIT/xlutils/.'
> Develop: '/Users/chris/LocalGIT/xlutils/../xlrd'
> Develop: '/Users/chris/LocalGIT/xlutils/../xlwt'
> Unused options for buildout: 'unzip'.
> Updating test.
> Updating py.
> Generated script '/Users/chris/LocalGIT/xlutils/bin/margins'.
> Updating docs.
> Generated script '/Users/chris/LocalGIT/xlutils/bin/margins'.
> 
> YAY! (or so I thought)
> 
> buzzkill:xlutils chris$ bin/test
> <snip>
>   Ran 327 tests with 2 failures and 27 errors in 0.478 seconds.
> Tearing down left over layers:
>   Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.
> 
> buzzkill:xlutils chris$ cat bin/test
> #!/usr/local/bin/python2.6
> 
> import sys
> sys.path[0:0] = [
>   '/Users/chris/LocalGIT/xlutils',
>   '/Users/chris/buildout-eggs/zope.testrunner-4.3.3-py2.6.egg',
> 
> '/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages',
>   '/Users/chris/buildout-eggs/zope.exceptions-4.0.6-py2.6.egg',
> <snip>
> 
> Oh FFS :-( Why is the python2.6 buildout using xlrd from
> site-packages in a python2.7 installation?!

Check develop-eggs/, there may be a distribute.egg-link file that puts
/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages
in your sys.path.

When in doubt, rm -rf develop-eggs before retrying.

Marius Gedminas
-- 
1 + 1 = 3
                -- from a Microsoft advertisement

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to