[sage-devel] Re: Cython and Libraries

2009-07-05 Thread gsw
On 5 Jul., 19:04, Bjarke Hammersholt Roune wrote: > Hi gsw, > > Thank you for looking at the Frobby-Cython ticket. According to the > Cython FAQ, pxd files are preferred over pxi files, unless the file > has to contain code rather than just declarations. The file in > question does not have any

[sage-devel] Re: Cython and Libraries

2009-07-05 Thread Dag Sverre Seljebotn
Bjarke Hammersholt Roune wrote: > Hi gsw, > > Thank you for looking at the Frobby-Cython ticket. According to the > Cython FAQ, pxd files are preferred over pxi files, unless the file > has to contain code rather than just declarations. The file in > question does not have any code, so you are co

[sage-devel] Re: Cython and Libraries

2009-07-05 Thread Bjarke Hammersholt Roune
Hi gsw, Thank you for looking at the Frobby-Cython ticket. According to the Cython FAQ, pxd files are preferred over pxi files, unless the file has to contain code rather than just declarations. The file in question does not have any code, so you are correct that it would be better as a pxd file.

[sage-devel] Re: Cython and Libraries

2009-07-02 Thread gsw
On 1 Jul., 16:04, Bjarke Hammersholt Roune wrote: > > Both the Frobby-Cython interface to be created, > > The Frobby spkg in Sage is command line-based, but I should point out > that the Frobby Cython interface is on trac currently, > athttp://sagetrac.org/sage_trac/ticket/6416, just waiting for

[sage-devel] Re: Cython and Libraries

2009-07-01 Thread Bjarke Hammersholt Roune
> Both the Frobby-Cython interface to be created, > The Frobby spkg in Sage is command line-based, but I should point out that the Frobby Cython interface is on trac currently, at http://sagetrac.org/sage_trac/ticket/6416, just waiting for a review. Cheers Bjarke --~--~-~--~~

[sage-devel] Re: Cython and Libraries

2009-06-30 Thread Robert Bradshaw
On Jun 30, 2009, at 10:48 PM, Jason Grout wrote: > > Nathann Cohen wrote: >> Hello everybody !!! >> >> I have been trying for ages to post a clean patch for Cliquer, a >> software used to solve the Max Clique problem in Sage. It has been >> refused a lot of times for reasons I understand, but I s

[sage-devel] Re: Cython and Libraries

2009-06-30 Thread Jason Grout
Nathann Cohen wrote: > Hello everybody !!! > > I have been trying for ages to post a clean patch for Cliquer, a > software used to solve the Max Clique problem in Sage. It has been > refused a lot of times for reasons I understand, but I still do not > know how to correct it. My problem is the fo

[sage-devel] Re: Cython and Libraries

2009-06-30 Thread gsw
Yippieh, that's what I really love about Sage: you'll never walk alone! What about the following idea: let's create sage.libs.playground and, say, Cython (sub-)modules sage.libs.playground.exampleclib sage.libs.playground.examplecpplib which are amply documented despite their names, but in a s

[sage-devel] Re: Cython and Libraries

2009-06-30 Thread Bjarke Hammersholt Roune
An example spkg could be included as a test the same way that examples in documentation are now used as a test, so there need not be an issue of the example not working. Indeed, if it is required that the documentation is updated in tandem with the example spkg, then the documentation will also be

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread William Stein
On Mon, Jun 29, 2009 at 11:44 PM, Bjarke Hammersholt Roune wrote: > > Hi Georg, > > I worked on a Cython interface to Frobby a few days ago, and from that > experience I'll say that your project is a great idea! > > Here's one way to do it: I think it would work well to have a hands-on > guide for

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Bjarke Hammersholt Roune
Hi Georg, I worked on a Cython interface to Frobby a few days ago, and from that experience I'll say that your project is a great idea! Here's one way to do it: I think it would work well to have a hands-on guide for how to write an spkg that installs a shared library into Sage with some simple

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread gsw
On 29 Jun., 11:34, Nathann Cohen wrote: > Hello everybody !!! > > I have been trying for ages to post a clean patch for Cliquer, a > software used to solve the Max Clique problem in Sage. It has been > refused a lot of times for reasons I understand, but I still do not > know how to correct it.

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Robert Bradshaw
On Jun 29, 2009, at 9:11 AM, William Stein wrote: > > On Mon, Jun 29, 2009 at 6:02 PM, Bjarke Hammersholt > Roune wrote: >> >> Hi Nathann, >> >> Library files contain information about what they contain. So Sage >> reads all the library files it has access to (presumably this only >> happens once

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread William Stein
On Mon, Jun 29, 2009 at 6:02 PM, Bjarke Hammersholt Roune wrote: > > Hi Nathann, > > Library files contain information about what they contain. So Sage > reads all the library files it has access to (presumably this only > happens once at startup) and selects the right one. > > Cheers > Bjarke > >

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Bjarke Hammersholt Roune
Hi Nathann, Library files contain information about what they contain. So Sage reads all the library files it has access to (presumably this only happens once at startup) and selects the right one. Cheers Bjarke On 29 Jun., 17:27, Nathann Cohen wrote: > Hello ! > > Thank you for you answer tho

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Nathann Cohen
Hello ! Thank you for you answer though I still have one disturbing question : If I have one header file named XX.h and one library file named FFF.so, how on earth can Cython know that the function defined in XXX.h is to be found in FFF.so ? Thanks again ! :-) Nathann On Jun 2

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread Simon King
Hi William, hi Nathann, On 29 Jun., 11:43, William Stein wrote: > > I have a C program without a makefile which is meant to be used from > > the command line, and I would like to interface it with SAGE. I have > > been told this should be done through libraries, and I do not have the > > slighte

[sage-devel] Re: Cython and Libraries

2009-06-29 Thread William Stein
On Mon, Jun 29, 2009 at 11:34 AM, Nathann Cohen wrote: > > Hello everybody !!! > > I have been trying for ages to post a clean patch for Cliquer, a > software used to solve the Max Clique problem in Sage. It has been > refused a lot of times for reasons I understand, but I still do not > know how