On Thursday 05 April 2007 17:04, Andrew Straw wrote:
> Joshua J. Kugler wrote:
> > Installing an egg today, I got this message from easy_install:
> >
> > /usr/bin/easy_install:5: UserWarning: Module dateutil was already
> > imported from
> > /usr/lib/python2.4/site-packages/matplotlib-0.87.7-py2.4-linux-i686.egg/d
> >ateutil/__init__.pyc, but
> > /usr/lib/python2.4/site-packages/python_dateutil-1.1-py2.4.egg is being
> > added to sys.path
> >   from pkg_resources import load_entry_point
> >
> > Investigating, it seems that Matplotlib includes python-dateutils
> > wholesale in its egg, instead of depending on the python-dateutils egg
> > and installing that, thus generating warning messages like these.
>
> Where did you get that matplotlib egg? Particularly on linux (which you
> appear to be using), distributing .eggs for matplotlib would be
> problematic because of all the 3rd party libraries required, so I didn't
> think they'd be officially distributed. Indeed, I don't see one for
> linux on the matplotlib download page.

I create it myself using the supplied setupegg.py script.

> >   Would be possible to
> > remove the dateutil module from future matplotlib eggs and simply rely on
> > the python-dateutils egg?
>
> Since matplotlib doesn't require setuptools (other than for Python 2.3),
> there can be no install_requires field. (And even if we had it in the
> install_requires field, does your linux distribution's python-dateutil
> package include the egg info required for the install_requires field to
> work?)

Gotcha.

> If you built the egg yourself, you can re-build it with dateutil
> installed and then matplotlib's setup.py file won't include its own
> dateutil. Ditto for pytz.

Thanks for the tip!  Installed pytz and dateutil, and the created egg is what 
I desired.  Thanks!

j

-- 
Joshua Kugler                           
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE
PO Box 80086 -- Fairbanks, AK 99708 -- Ph: 907-456-5581 Fax: 907-456-3111

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to