Re: pynac installation

57 views
Skip to first unread message

Burcin Erocal

unread,
Apr 20, 2013, 5:11:43 PM4/20/13
to pynac...@googlegroups.com
Hi,

On Fri, 19 Apr 2013 22:29:36 -0700 (PDT)
Krishna Tiwari <kri...@gmail.com> wrote:

> Does anyone have idea regarding installation of pynac. does
> it come by default with sage environment ?

Yes, pynac is a standard package in Sage. Starting from a Sage install,
you can use the instructions here to start experimenting with Pynac:

http://hg.pynac.org/pynac/wiki/get_involved


Since recent pynac spkg's do not come with the mercurial repository any
more, the instructions above are not very useful for setting up a
development environment. You can also do the following.

- Clone the pynac repository from http://hg.pynac.org/pynac
to a directory <PYNAC_DIR>

- Install Sage (latest version to avoid interface
incompatibilities) in a directory <SAGE_ROOT>

- start a "sage shell"

cd <SAGE_ROOT>
./sage -sh

- configure pynac to install to your Sage directory

cd ${PYNACDIR}
PKG_CONFIG_PATH=${SAGE_LOCAL}/lib/pkgconfig; export PKG_CONFIG_PATH
./configure --disable-static --prefix=${SAGE_LOCAL} --libdir="$SAGE_LOCAL/lib"

- use your favorite editor and mercurial work on pynac sources

- in the sage shell compile and install your changes to try them out in
Sage later

make install


- start Sage, do something to test your changes


We should update the wiki page with the instructions above.


Cheers,
Burcin
Reply all
Reply to author
Forward
0 new messages