I filed an issue for this. We should try to get the fix into 1.2.x
On 10/10/2012 09:00 AM, Michael Droettboom wrote:
I think this stack overflow question  sort of sums up the problem --
setuptools develop is kind of a hack and only really works if the source
structure matches the installed structure. That used to be true of
matplotlib, but installing different packages based on the Python version
breaks that assumption.
A suggestion in the Stack Overflow entry is to install symlinks to fix this,
and indeed doing this works:
ln -s dateutil_py2 dateutil
We can probably automate this in the setupegg.py script, but I don't think
I'll have a chance to get to this today. We can't just include the symlink
in git, since it should point to the version that corresponds to the user's
On 10/10/2012 08:50 AM, Michael Droettboom wrote:
This is related to using develop mode. I never use that (I use virtualenvs
instead), so this doesn't get much testing. This seems to have broken when
we started to ship separate versions of dateutil for python2 and python3.
setuptools doesn't seem to like the fact that we rename dateutil_py2 to
dateutil when installing (since in develop mode it doesn't really install or
move anything). That's problematic, of course. I'll have to see if there's
another way to handle this.
On 10/09/2012 09:36 PM, Gökhan Sever wrote:
With a fresh
git clone git://github.com/matplotlib/matplotlib.git
sudo python setupegg.py develop
Starting ipython --pylab I get this error:
.../matplotlib/lib/matplotlib/dates.py in <module>()
120 import matplotlib.ticker as ticker
--> 122 from dateutil.rrule import rrule, MO, TU, WE, TH, FR, SA, SU,
123 MONTHLY, WEEKLY, DAILY, HOURLY, MINUTELY, SECONDLY
124 from dateutil.relativedelta import relativedelta
ImportError: No module named dateutil.rrule
Installing dateutil 1.5 fixes this.
mpl install log shows the following:
OPTIONAL DATE/TIMEZONE DEPENDENCIES
dateutil: matplotlib will provide
pytz: matplotlib will provide
Will dateutil be shipped with mpl or this line needs to be updated?