[Distutils] setuptools-0.6a7
Ian Bicking
ianb at colorstudy.com
Wed Nov 2 17:39:16 CET 2005
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?
I think this is happening because sqlobject/conftest.py does
require('SQLObject'), and apparently that's loading the installed egg
instead of the code already on sys.path. I'm not sure what the proper
resolution on this is. How can conftest.py make sure that the
containing files are made active, and not any other installed SQLObject
code?
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Distutils-SIG
mailing list