From: Sandro T. <mo...@de...> - 2008-12-16 10:21:47
|
Hello John and Darren, On Sun, Dec 14, 2008 at 22:05, John Hunter <jd...@gm...> wrote: > On Sun, Dec 14, 2008 at 7:46 PM, Sandro Tosi <mat...@gm...> wrote: > >> Well, what I'm actually asking is: can I use any matplotlibrc file (be >> it from any location in the tarball or forged during build process) or >> the one in doc/mpl_data has something specific to documentation that >> needs to be preserved. > > In svn, doc/mpl_data is just a symlink to lib/matplotlib/mpl-data > > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/mpl_data?view=markup > > Apparently symlinks are lost in building an sdist, and doc/mpl_data > becomes a copy. So in the actual src, the rc files are not just > identical in the two locations, they are the same file. It makes the > most sense for the users to see in the docs the default rc file they > are getting with your actual install. Ah, now it's clear! I added a patch to just: - shutil.copy('mpl_data/matplotlibrc', '_static/matplotlibrc') + shutil.copy('../lib/matplotlib/mpl-data/matplotlibrc', '_static/matplotlibrc') And now the doc is built (but another problem, worth another thread, comes out). Thanks & Cheers, -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi |