Re: [sage-devel] Re: Unifying Command line options

2012-03-05 Thread Robert Bradshaw
On Sun, Mar 4, 2012 at 3:48 AM, R. Andrew Ohana wrote: > > On Mar 4, 2012 3:12 AM, "Robert Bradshaw" > wrote: >> >> On Sat, Mar 3, 2012 at 3:21 PM, R. Andrew Ohana >> wrote: >> > I've created a repo on github: github.com/ohanar/sagescripts >> > >> > Much of the backbone has been setup, although

Re: [sage-devel] Re: Unifying Command line options

2012-03-04 Thread Jeroen Demeyer
On 2012-03-04 11:29, R. Andrew Ohana wrote: > Can you be more specific? Introducing the two variables or decoupling > sage-scripts? I meant "decoupling sage-scripts". And the consequences all depend on the approach you're taking. Anyway, there already is a ticket but no consensus on how to do it:

Re:[sage-devel] Re: Unifying Command line options

2012-03-04 Thread R. Andrew Ohana
On Mar 4, 2012 2:42 AM, "Keshav Kini" wrote: > > "R. Andrew Ohana" writes: > > I've created a repo on github: github.com/ohanar/sagescripts > > From https://github.com/ohanar/sagescripts/blob/master/README : > > it should be relatively easy at this point to move old bash scripts > > into this rep

Re: [sage-devel] Re: Unifying Command line options

2012-03-04 Thread R. Andrew Ohana
On Mar 4, 2012 3:12 AM, "Robert Bradshaw" wrote: > > On Sat, Mar 3, 2012 at 3:21 PM, R. Andrew Ohana wrote: > > I've created a repo on github: github.com/ohanar/sagescripts > > > > Much of the backbone has been setup, although I've ported very few > > actual scripts (the ones there are mainly to

Re: [sage-devel] Re: Unifying Command line options

2012-03-04 Thread Robert Bradshaw
On Sat, Mar 3, 2012 at 3:21 PM, R. Andrew Ohana wrote: > I've created a repo on github: github.com/ohanar/sagescripts > > Much of the backbone has been setup, although I've ported very few > actual scripts (the ones there are mainly to test that my generating > code actually does what I want it to

Re: [sage-devel] Re: Unifying Command line options

2012-03-04 Thread R. Andrew Ohana
On Mar 3, 2012 11:47 PM, "Jeroen Demeyer" wrote: > > On 2012-03-04 00:21, R. Andrew Ohana wrote: > > Also, I would like to decouple the sage-scripts spkg from sage > > releases, since in many cases it seems like the only change is a > > version bump. I've added SAGE_VERSION and SAGE_RELEASE_DATE t

Re: [sage-devel] Re: Unifying Command line options

2012-03-03 Thread Jeroen Demeyer
On 2012-03-04 00:21, R. Andrew Ohana wrote: > Also, I would like to decouple the sage-scripts spkg from sage > releases, since in many cases it seems like the only change is a > version bump. I've added SAGE_VERSION and SAGE_RELEASE_DATE to > sage-env, which can hopefully remedy this. Please don't.

Re: [sage-devel] Re: Unifying Command line options

2012-03-03 Thread R. Andrew Ohana
I've created a repo on github: github.com/ohanar/sagescripts Much of the backbone has been setup, although I've ported very few actual scripts (the ones there are mainly to test that my generating code actually does what I want it to). The way it is setup is pretty basic: Scripts will still be w

Re: [sage-devel] Re: Unifying Command line options

2012-03-02 Thread Robert Bradshaw
On Fri, Mar 2, 2012 at 1:27 AM, Jason Grout wrote: > On 3/2/12 2:55 AM, Robert Bradshaw wrote: >> >> I think sage foo ... should default to running bin/sage-foo (in the >> sage environment) if it exists, and treat foo as a file otherwise. >> Virtually no argument parsing (aside from understanding

Re: [sage-devel] Re: Unifying Command line options

2012-02-28 Thread Michael Orlitzky
On 02/28/2012 03:45 PM, Keshav Kini wrote: William Stein writes: On Tue, Feb 28, 2012 at 8:43 AM, Keshav Kini wrote: It's not actually a fallback for b), though. If a file does exist with the same name as a subcommand, b) makes it impossible to use that subcommand without changing directory o

Re: [sage-devel] Re: Unifying Command line options

2012-02-28 Thread William Stein
On Tue, Feb 28, 2012 at 8:43 AM, Keshav Kini wrote: > On Tue, Feb 28, 2012 at 23:54, Michael Orlitzky wrote: >> On 02/27/12 15:51, R. Andrew Ohana wrote: >> > 2) The standard solution has been brought up, and I think it is decent >> > one; we use an escape mode with a double dash (e.g. sage -- >>

Re: [sage-devel] Re: Unifying Command line options

2012-02-28 Thread Keshav Kini
On Tue, Feb 28, 2012 at 23:54, Michael Orlitzky wrote: > On 02/27/12 15:51, R. Andrew Ohana wrote: > > 2) The standard solution has been brought up, and I think it is decent > > one; we use an escape mode with a double dash (e.g. sage -- > > some_script.sage). > > This should probably be the fallb

Re: [sage-devel] Re: Unifying Command line options

2012-02-28 Thread Michael Orlitzky
On 02/27/12 15:51, R. Andrew Ohana wrote: > > 2) How would we handle sage scripts (or other things that are truly > arguments and not subcommands) > 2) The standard solution has been brought up, and I think it is decent > one; we use an escape mode with a double dash (e.g. sage -- > some_script.s

Re: [sage-devel] Re: Unifying Command line options

2012-02-06 Thread David Roe
That SEP suggests adding subcommands similar to what Andrew suggested. But I don't agree with removing sage -t etc because you can get the same functionality with make. David On Mon, Feb 6, 2012 at 05:08, Keshav Kini wrote: > I just found this SEP (Sage Enhancement Proposal), which one might wa