From: Andre W. <wo...@us...> - 2004-04-20 08:42:33
|
Hi, On 20.04.04, Joerg Lehmann wrote: > On 20.04.04, Andre Wobst wrote: > > I've patched setup.py > > accordingly and introduced a siteconfig.py (which is temporarily > > overwritten during install). > > Nice, although it's not clear why we do not only create the > siteconfig.py file temporarily. In other words: why is there a > siteconfig.py in the distribution, if it's just ignored by the > installer. First I thought (as well), that we would need that for our CVS developer version only. But you may download the distribution and use PyX without any install (you may add the PyX base directory to the PYTHONPATH or just run python in the base directory). Then you want our developer behaviour as well (otherwise we could just skip the distribution of siteconfig.py). I think it's fine -- its just an additional feature, that we can run PyX without any setup. Of course, we could do that path adjustment outside of siteconfig.py as well instead of replacing siteconfig.py. It would blow up the code, where we access the siteconfig, and thats actually worse to my eyes. Another issue is, that the lfs lives in a different directory than other shared material (pyx.def, textboxes.tex in the future -- which are distributed in contrib). Currently I've just left everything as it is. I'm not sure whether its worth any thoughts at all. In principal, the shared data material is different from other things we might distribute in contrib in the future (like a dvips.py). > +1 on including the pyxrc path in the siteconfig.py file What do you think about adding a flag to setup.cfg, where we enable the global pyxrc (this includes copying the pyxrc to the appropriate position) and denote the path of the global configuration in siteconfig.py (otherwise we could set this variable in siteconfig.py to None). I don't know whether its a good idea to make a global pyxrc an install option (I've never seen such a behaviour before). On the other hand we do not (yet) install the global pyxrc at all. This contradicts setting up the path of the global pyxrc during the install. Or should we switch to always install the global pyxrc? André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |