On Thu, Dec 18, 2008 at 3:52 AM, Dan Drake <dr...@kaist.edu> wrote: > Hello all, > > The SageTeX package needs two basic pieces to work: a pure Python > module, and a pure LaTeX style file. Since a Sage installation is > necessary for either of those pieces to be useful, it seems like it > would be wise to include SageTeX as a spkg. > > I have a preliminary version ready to go: > > http://sage.math.washington.edu/home/drake/sagetex-2.0.spkg > > The spkg installs a single Python module, sagetex.py, into > the $SAGE_ROOT/local/lib/python tree. The rest of the files it installs > are documentation and TeX files; all those are installed into > $SAGE_ROOT/local/share/texmf/tex/generic/sagetex. The directory fits > with typical TeX installations, so that anyone who wants to use SageTeX > can do something like > > cp -r $SAGE_ROOT/local/share/texmf/* ~/texmf/ > > and run texhash to make their TeX installation aware of the sagetex.sty > file. > > I think having the sagetex.py module built-in to Sage makes sense, as it > makes it easier to use SageTeX (which in any case doesn't work unless > you have Sage installed) and the Python module is under 5KB. The rest of > the spkg is mostly pre-built documentation. > > So, should we include SageTeX as a spkg? >
Based on all the +1's it is now an optional spkg. Now everybody can trivially install it by doing sage -i sagetex-2.0 Can you post to sage-devel in one month about moving this from optional to standard, after more people have used it as an optional package? Regarding the actual spkg, looking inside it looks like this: ----------------------------------------------------------------- wst...@sage:~/sage/spkg/optional/sagetex-2.0$ ls example.pdf extractsagecode.py PKG-INFO README.spkg sagetexpackage.ins sagetexparse.py sagetex.sty spkg-install example.tex makestatic.py README sagetexpackage.dtx sagetexpackage.pdf sagetex.py setup.py ----------------------------------------------------------------- It seems like the layout and naming of the files in there is just kind of made up -- it somewhat ignores all the standards we decided on for how spkg's should be laid out. After searching for 5 minutes, *I* can't even find anything in the wiki about how spkg's should be laid out, so I'm not surprised you didn't either. Anyway, the best thing to do is to look at one that is in spkg/standard/ and copy the format: src/ -- most of your stuff goes in this directory SPKG.txt -- describes the spkg in wiki format spkg-install -- the install script patches -- for patches against upstream (you won't need this) There should not be a README.spkg (that's SPKG.txt) and README above should be moved to src/README. Many thanks! -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---