Hmmm.... Could this kind of behaviour come fro the sole fact that I do not use a "good" version of some software ?
sage: setup() --------------------------------------------------------------------------- SystemExit Traceback (most recent call last) /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/sage/setup.py in <module>() /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/.sagebin/local/ lib/python/distutils/core.pyc in setup(**attrs) SystemExit: usage: sage-ipython [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: sage-ipython --help [cmd1 cmd2 ...] or: sage-ipython --help-commands or: sage-ipython cmd --help error: option -i not recognized Type %exit or %quit to exit IPython (%Exit or %Quit do so unconditionally). sage: This setup() command seems to be useful when one tries to build extensions, but it also seems to be in a nasty mood ;-) Nathann On Jul 3, 3:42 pm, William Stein <wst...@gmail.com> wrote: > On Fri, Jul 3, 2009 at 3:35 PM, Nathann Cohen<nathann.co...@gmail.com> wrote: > > > Hmmm... I began to write the interface to CBC to notice that the > > libraries was writtten in C++ and that I needed to wrap C++ classes > > into Cython, which I do not know how to do ... I read several manuals > > and end up with compilation failures I do not know how to fix : > > sage: execfile("setup.py") > > --------------------------------------------------------------------------- > > SystemExit Traceback (most recent call > > last) > > > /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/sage/<ipython > > console> in <module>() > > > /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/sage/setup.py in > > <module>() > > 14 extra_link_args=["-l OsiClp -l Osi -l Clp -l > > CoinUtils"], # if needed > > 15 # cmdclass = {'build_ext': build_ext} > > 16 )], > > ---> 17 cmdclass = {'build_ext': build_ext} > > 18 ) > > > /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/.sagebin/local/ > > lib/python/distutils/core.pyc in setup(**attrs) > > > SystemExit: usage: sage-ipython [global_opts] cmd1 [cmd1_opts] [cmd2 > > [cmd2_opts] ...] > > or: sage-ipython --help [cmd1 cmd2 ...] > > or: sage-ipython --help-commands > > or: sage-ipython cmd --help > > > error: option -i not recognized > > Type %exit or %quit to exit IPython (%Exit or %Quit do so > > unconditionally). > > sage: > > > If anybody with skills in interfacing C++ with Sage is available, let > > him appear now ! > > Your best bet is to look at the many complete working examples of > wrapping substantial C++ libraries that are already in Sage. E.g., I > like the wrapper of givaro in the rings/finite_field_givaro* files. > Also, there are extensive wrappers of NTL in libs/ntl/* > > 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 -~----------~----~----~----~------~----~------~--~---