[Distutils] [zc.buildout] building a testrunner

Chris Withers chris at simplistix.co.uk
Tue Jul 22 17:10:39 CEST 2008


Jim Fulton wrote:
> My guess is that you forgot to list lots of your dependencies in your 
> setup.py file.

I don't think so, twiddler only has dependencies on elementtree and 
zope.interface and these are both listed.

> Look at the generated test script.  You should see all required eggs 
> listed in the Python path.

Yep, I do.

>> Test-module import failures:
>> Module: eggs.setuptools-0.6c5-py2.4.egg.setuptools.tests.test_resources
>> ImportError: No module named 
>> eggs.setuptools-0.6c5-py2.4.egg.setuptools.tests.te
>> st_resources

Okay, taking just this first one:

- why is the script trying to run setuptools' tests?

- why is it failing?

Both of these questions could also be applied just as equally to 
zc.buildout, zc.egg.recipe, zope.interface and zope.testing.

>> Test-modules with import problems:
>>  eggs.setuptools-0.6c5-py2.4.egg.setuptools.tests.test_resources
>>  eggs.setuptools-0.6c8-py2.4.egg.setuptools.tests.test_packageindex
>>  eggs.setuptools-0.6c8-py2.4.egg.setuptools.tests.test_resources
>>  eggs.zc.buildout-1.0.7_dev-py2.4.egg.zc.buildout.tests
>>  eggs.zc.buildout-1.1.0-py2.4.egg.zc.buildout.tests
>>  eggs.zc.recipe.egg-1.1.0-py2.4.egg.zc.recipe.egg.tests
<snip>

It looks like the testrunner might be trying to find tests in the egg cache?

Why would it do that?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Distutils-SIG mailing list