[Distutils] setuptools-0.6a7

Phillip J. Eby pje at telecommunity.com
Wed Nov 2 20:26:03 CET 2005


At 10:39 AM 11/2/2005 -0600, Ian Bicking wrote:
>Oleg Broytmann wrote:
> > Hello!
> >
> >    When I test a new patch I set PYTHONPATH=. and run
> > py.test sqlobject/test/test_something.py
> >
> >    Until today it works pretty good. Unfortunately, setuptools-0.6a7 has
> > got an additional intelligence and now spits this warning:
> >
> > 
> /usr/local/lib/python2.4/site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py:1943: 
> UserWarning: Module sqlobject was already imported from 
> /home/phd/work/SQLObject/SQLObject-trunk-index_get/sqlobject/__init__.py, 
> but 
> /usr/local/lib/python2.4/site-packages/SQLObject-0.8dev_r1185-py2.4.egg 
> is being added to sys.path
> >   warn(
> >
> > (I don't know what this 'warn(' means.)
> >
> >    How can I stop setuptools-0.6a7 from being so clever? or at least how to
> > eliminate this warning?

Try running 'setup.py egg_info' before trying to run the tests.  Most 
likely, the problem is because your checkout doesn't contain any egg 
metadata, so the runtime system can't tell that '.' is actually an egg, or 
what version it has.



More information about the Distutils-SIG mailing list