|
From: Andre W. <wo...@us...> - 2004-04-20 07:29:52
|
Hi, On 19.04.04, Fernando Perez wrote: > I've been able to solve the problem by hand, by copying the contents of > ~/usr/local/share/pyx to ~/usr/local/lib/python/pyx/lfs. But this seems > like an ugly solution to me. I don't know off-hand how to fix it, but > somehow you guys will need to make the routine which searches for these > files know where to look, even when the user installed to a different > prefix. Absolutely right. It was a bad design from the very beginning. We included ~/usr/local/lib/python/pyx/lfs only, because we needed it for CVS and local running (without using distutils and setup.py). When installing PyX via setup.py we really need to store the path to the share directory to have it available later on and do not include the ~/usr/local/lib/python/pyx/lfs anymore. I've patched setup.py accordingly and introduced a siteconfig.py (which is temporarily overwritten during install). IFAIK this is the solution to go. (Any distutils expert around?) We could step further and could define the "/etc/pyxrc" position along the same lines. The later is an open issue as well. André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |