[Distutils] Ignoring site-packages when running zc.buildout tests

Ross Patterson me at rpatterson.net
Tue Oct 30 23:52:46 CET 2007

Jim Fulton <jim at zope.com> writes:

> On Oct 30, 2007, at 6:34 PM, Ross Patterson wrote:
>> I have python-setuptools installed through my OS and zc.buildout
>> installed with easy_install.  I'd like to be able to ignore these when
>> running the zc.buildout tests (or tests for other projects that handle
>> distributions) so that the system packages don't interfere with the
>> testing environment.
>> Any ideas?
> Your test runner could arrange that site-packages is excluded from
> sys.path.
> I plan to add an option to the various egg-related recipes, including
> the test runner recipe, to exclude site-packages when looking for
> eggs.

Well then I think I'll wait for such.  Thanks.

>>   Should the zc.buildout tests be modified or should my
>> system?
> Probably. Note that the zc.buildout tests only work when run from a
> zc.buildout checkout.  I need to fix this.

FWIW, this is how I was running them and my system installed packages
were still causing test failures, unless I'm misunderstanding things.


More information about the Distutils-SIG mailing list