Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2008-07-23 23:41:31
Size: 432
Editor: cswiercz
Comment:
Revision 7 as of 2008-11-14 13:42:07
Size: 3384
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 University of Washington
 BS Mathematics with Distinction
 Email: <<MailTo(cswiercz AT SPAMFREE gmail DOT com)>> .
 Google Talk: cswiercz
 IRC: cswiercz
Line 5: Line 10:
Email: [[MailTo(cswiercz AT SPAMFREE gmail DOT com)]] The following is a missing piece of documentation for adding new {{{.pyx}}} to the ''Sage'' library: See [[http://www.sagemath.org/doc/html/prog/node40.html|5.2]] of the [[http://www.sagemath.org/doc/html/prog/prog.html|Sage Programming Guide]].
Line 7: Line 12:
The following is a missing piece of documentation for adding new <tt>.pyx<\tt>
to the ''Sage'' library: See 5.2 of the Programming Documentation
= Cython =
Line 11: Line 14:
Line 13: Line 15:
Line 16: Line 17:
Suppose you want a more permanent way of including your optimized Cython code in Sage. Perhaps
you want to contribute to the Sage project? This guide will show you how to create a simple
Cython module and then link it to the Sage library so that your code will appear in future
versions of Sage.
Line 17: Line 22:
= Opentick =

Opentick provides free real-time and historical market data for trading systems and trading platforms. See www.opentick.com.

This package is used by the sage.finance module.

=== opentick1.1 (Chris Swierczewski, 27 Aug 2008) ===
 * Checkout from {{{cvs -d :pserver:[email protected]:/var/cvs co otfeed1.1-dev}}} (Note that this currently does not work! Results in following error message:)
   {{{
   cvs [checkout aborted]: connect to cvs.opentick.com(64.210.196.151):2401 failed: No route to host
   }}}
 For now, download from http://cvs.opentick.com/cgi-bin/cvsweb.cgi/otfeed1.1-dev/otfeed1.1-dev.tar.gz?tarball=1.
 * Download patch from http://otfeed-patches.googlecode.com/files/otfeed1.1-dev-autotools.patch into top-level folder so that compiler can use GNU autotools.
 * Apply patch using the following command:
   {{{
   $ patch -p1 < otfeed1.1-dev-autotools.patch
     patching file Applications/HistCsv/Include/Makefile.am
     patching file Applications/HistCsv/Makefile
     patching file Applications/HistCsv/Makefile.am
     patching file Applications/HistCsv/Sources/Makefile.am
     patching file Applications/Makefile.am
     patching file AUTHORS
     patching file ChangeLog
     patching file configure.ac
     patching file COPYING
     patching file Include/Makefile.am
     patching file INSTALL
     patching file Makefile.am
     patching file NEWS
     patching file OTFeed.CPP/Include/Makefile.am
     patching file OTFeed.CPP/Makefile
     patching file OTFeed.CPP/Makefile.am
     patching file OTFeed.CPP/Sources/Makefile.am
     patching file README
     patching file Samples/Linux/Makefile
     patching file Samples/Linux/Makefile.am
     patching file Samples/Makefile.am
   }}}
 * Bootstrap the autotool build system:
   {{{
   $ autoreconf -i
     configure.ac:8: installing `./missing'
     configure.ac:8: installing `./install-sh'
     Applications/HistCsv/Sources/Makefile.am: installing `./depcomp'
   }}}
 * Configure, make, and install Opentick source in {{{src/}}} to {{{$SAGE_ROOT}}}. Libraries are put into {{{$SAGE_LOCAL/lib}}} and headers into {{{$SAGE_LOCAL/include}}}:
   {{{
   ./configure --prefix=$SAGE_LOCAL
   make
   make install
   }}}
 * Make and install C++ binary, otwrapper. Binary is copied to {{{$SAGE_LOCAL/bin}}}
   {{{
   cd otwrapper
   make
   make install
   }}}
Line 19: Line 81:
CategoryHomepage  CategoryHomepage

Chris Swierczewski

  • University of Washington BS Mathematics with Distinction

    Email: <cswiercz AT SPAMFREE gmail DOT com> . Google Talk: cswiercz IRC: cswiercz

The following is a missing piece of documentation for adding new .pyx to the Sage library: See 5.2 of the Sage Programming Guide.

Cython

Writing Optimized Compiled Code with Sage

Examples

Creating .pyx Files in the Sage Library

Suppose you want a more permanent way of including your optimized Cython code in Sage. Perhaps you want to contribute to the Sage project? This guide will show you how to create a simple Cython module and then link it to the Sage library so that your code will appear in future versions of Sage.

Opentick

Opentick provides free real-time and historical market data for trading systems and trading platforms. See www.opentick.com.

This package is used by the sage.finance module.

opentick1.1 (Chris Swierczewski, 27 Aug 2008)

  • Checkout from cvs -d :pserver:[email protected]:/var/cvs co otfeed1.1-dev (Note that this currently does not work! Results in following error message:)

    •    cvs [checkout aborted]: connect to cvs.opentick.com(64.210.196.151):2401 failed: No route to host

    For now, download from http://cvs.opentick.com/cgi-bin/cvsweb.cgi/otfeed1.1-dev/otfeed1.1-dev.tar.gz?tarball=1.

  • Download patch from http://otfeed-patches.googlecode.com/files/otfeed1.1-dev-autotools.patch into top-level folder so that compiler can use GNU autotools.

  • Apply patch using the following command:
    •    $ patch -p1 < otfeed1.1-dev-autotools.patch 
           patching file Applications/HistCsv/Include/Makefile.am 
           patching file Applications/HistCsv/Makefile 
           patching file Applications/HistCsv/Makefile.am 
           patching file Applications/HistCsv/Sources/Makefile.am 
           patching file Applications/Makefile.am 
           patching file AUTHORS 
           patching file ChangeLog 
           patching file configure.ac 
           patching file COPYING 
           patching file Include/Makefile.am 
           patching file INSTALL 
           patching file Makefile.am 
           patching file NEWS 
           patching file OTFeed.CPP/Include/Makefile.am 
           patching file OTFeed.CPP/Makefile 
           patching file OTFeed.CPP/Makefile.am 
           patching file OTFeed.CPP/Sources/Makefile.am 
           patching file README 
           patching file Samples/Linux/Makefile 
           patching file Samples/Linux/Makefile.am 
           patching file Samples/Makefile.am
  • Bootstrap the autotool build system:
    •    $ autoreconf -i 
           configure.ac:8: installing `./missing' 
           configure.ac:8: installing `./install-sh' 
           Applications/HistCsv/Sources/Makefile.am: installing `./depcomp'
  • Configure, make, and install Opentick source in src/ to $SAGE_ROOT. Libraries are put into $SAGE_LOCAL/lib and headers into $SAGE_LOCAL/include:

    •    ./configure --prefix=$SAGE_LOCAL
         make 
         make install
  • Make and install C++ binary, otwrapper. Binary is copied to $SAGE_LOCAL/bin

    •    cd otwrapper
         make
         make install


cswiercz (last edited 2008-11-14 13:42:07 by localhost)