On Sat, Aug 22, 2009 at 4:26 AM, Simon King <simon.k...@nuigalway.ie> wrote:
> > Hi William! > > On 22 Aug., 12:25, William Stein <wst...@gmail.com> wrote: > [...] > > No, use the SAGE_DATA variable, which is defined in misc/misc.py: > > Thank you, I didn't know about that one. > Is it for data that concern the whole Sage installation, or is it > specific to a single user (like DOT_SAGE)? It is data that is global to the whole SAGE install. > > > In the former case, probably it would also be the right place for my > group cohomology data base (that I currently put into SAGE_LOCAL/ > pGroupCohomology/), wouldn't it? Yes, definitely. > But how can one tell setup.py that it is supposed to use SAGE_DATA? > > 'cause, if one has > > setup( > name = "packagename", > ... > data_files=[("Folder", > ["File1", > "File2"]), > ("Folder/Subfolder", [...]), > ... > ) > > then the data files seem to be copied to SAGE_ROOT/local/Folder and > SAGE_ROOT/local/Folder/Subfolder, if I'm not mistaken. Note, in > particular, that they all go into SAGE_LOCAL, not SAGE_DATA > I don't know any way to do what you want using setup.py. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an 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 -~----------~----~----~----~------~----~------~--~---