[sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Volker Braun
I agree that you don't have to modify module_list.py (which probably should be replaced at one point by something that doesn't rely on a single file having information about all modules, but I digress). Emil mentioned in his OP that he is editing modules_list for some reason. On Monday,

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks for everyone's help. I decided to make it a package that can be installed like: sage -python setup.py install My setup.py is as follows (except I changed the name of the package). I arrived at its contents by trial and error, so if anyone could have a quick look at it to see if there is

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread John H Palmieri
On Monday, April 2, 2012 8:32:18 AM UTC-7, Emil wrote: Thanks for everyone's help. I decided to make it a package that can be installed like: sage -python setup.py install My setup.py is as follows (except I changed the name of the package). I arrived at its contents by trial and error,

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks! Actually, I have a little problem. In setup.py I have: Extension('thing', sources=['mypackage/thing.pyx'], include_dirs = [SAGE_LOCAL + '/lib/python/site-packages/numpy/core/include',

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-01 Thread Volker Braun
On Saturday, March 31, 2012 11:42:08 PM UTC+1, Emil wrote: not pollute the name space (It contains classes with quite generic names like Problem and Construction.) Whats wrong with the module foo having a foo.Problem class? How is your spkg going to add cython modules to module_list.py?

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-01 Thread Robert Bradshaw
On Sat, Mar 31, 2012 at 3:42 PM, Emil emi...@gmail.com wrote: On 31 March 2012 12:47, Volker Braun vbraun.n...@gmail.com wrote: If it is of interest to an academic community then it probably should be part of Sage ;-) I'm not against it being incorporated into Sage at some point, but right

[sage-support] Re: Best way to develop Sage packages?

2012-04-01 Thread Keshav Kini
Volker Braun vbraun.n...@gmail.com writes: How is your spkg going to add cython modules to module_list.py? You can monkey-patch it in the spkg-install script but thats just a bad idea. For starters, it is definitely going to break down the road. Correct me if I'm wrong, but random

Re: [sage-support] Re: Best way to develop Sage packages?

2012-04-01 Thread William Stein
On Apr 1, 2012 7:18 PM, Keshav Kini keshav.k...@gmail.com wrote: Volker Braun vbraun.n...@gmail.com writes: How is your spkg going to add cython modules to module_list.py? You can monkey-patch it in the spkg-install script but thats just a bad idea. For starters, it is definitely going to

Re: [sage-support] Re: Best way to develop Sage packages?

2012-03-31 Thread Volker Braun
If it is of interest to an academic community then it probably should be part of Sage ;-) On Friday, March 30, 2012 11:04:00 PM UTC+1, Emil wrote: 3) probably shouldn't be made part of everyone's Sage, but it would be good if people could install it easily, as it will be of interest to a

Re: [sage-support] Re: Best way to develop Sage packages?

2012-03-31 Thread Emil
On 31 March 2012 12:47, Volker Braun vbraun.n...@gmail.com wrote: If it is of interest to an academic community then it probably should be part of Sage ;-) I'm not against it being incorporated into Sage at some point, but right now I'd rather keep it as a separate package that people can

Re: [sage-support] Re: Best way to develop Sage packages?

2012-03-31 Thread Maarten Derickx
I think you should make it an spkg because that is how people using sage expect to install it. Note that the install script in an spkg can contain arbitrary bash code so it can do everything you want it to. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe

[sage-support] Re: Best way to develop Sage packages?

2012-03-31 Thread Dima Pasechnik
On 2012-03-31, Emil emi...@gmail.com wrote: On 31 March 2012 12:47, Volker Braun vbraun.n...@gmail.com wrote: If it is of interest to an academic community then it probably should be part of Sage ;-) I'm not against it being incorporated into Sage at some point, but right now I'd rather keep

[sage-support] Re: Best way to develop Sage packages?

2012-03-30 Thread Pedro Cruz
I don't know if this below is a standard way but it works to develop stand alone packages: At sage package directory, for example, /opt/sage-some-version/local/lib/python2.6/site-packages/ execute ln -s /home/user1/newpackage/ where newpackage is a directory with all files

[sage-support] Re: Best way to develop Sage packages?

2012-03-30 Thread John H Palmieri
On Friday, March 30, 2012 10:14:15 AM UTC-7, Emil wrote: Hi, I'm working on a Sage package. I'm new to Sage, and learning as I go along... My source code is a mixture of .py and .spyx files, that (until now) I have been attaching() at the sage: prompt. This seems to work quite well.

Re: [sage-support] Re: Best way to develop Sage packages?

2012-03-30 Thread Emil
Pedro, John - thanks for your replies! It is a shame that you can't recompile bits of Sage from within Sage, but I guess there are good reasons for this. My package has the following characteristics: 1) it uses lots of Sage things 2) it is a mixture of Cython and Python 3) probably shouldn't be