|
Size: 1061
Comment:
|
Size: 1134
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 7: | Line 7: |
| 1. We assume that your PARI/GP source code is at $PARI_ROOT | 1. We assume that your PARI/GP source code is at $PARI_ROOT |
| Line 9: | Line 9: |
| 2. You need to use a version of Sage compiled from source located at $SAGE_ROOT | 2. You need to use a version of Sage compiled from source located at $SAGE_ROOT |
| Line 13: | Line 13: |
| 1. Download the script [[pari_sage.sh]] | 1. Download the script [[attachment:pari_sage.sh]] |
| Line 15: | Line 15: |
| 2. Do {{{ |
2. Do {{{ |
| Line 20: | Line 19: |
| $ pari_apply_patches # optional patch applications | |
| Line 24: | Line 22: |
| $ sage -f cysignals # recompile cysignals (to be linked correctly against pari) $ sage -f cypari # recompile cypari2 $ sage -br # recompiles what need to be |
|
| Line 29: | Line 24: |
| Procedure to undo the experimental PARI | 3. Recompile cysignals {{{ $ sage -f cysignals # recompile cysignals (to be linked correctly against pari) }}} |
| Line 31: | Line 29: |
| 1. | 4. Compile the last version of cypari {{{ $ sage -pip install git+https://github.com/defeo/cypari2 }}} 5. Recompile what needs to be {{{ $ sage -br }}} Procedure to restore the standard PARI package in Sage 1. |
Step by step tutorial on how to use PARI/GP development version in Sage
This tutorial explains how to use a PARI/GP development version inside Sage.
Prerequisites
- We assume that your PARI/GP source code is at $PARI_ROOT
- You need to use a version of Sage compiled from source located at $SAGE_ROOT
Procedure
Download the script pari_sage.sh
Do
$ cd $PARI_ROOT $ sage -sh # starts Sage environment $ source pari_build.sh # reading pari_build.sh $ pari_set_environment # setting properly environment variables for compilation $ pari_build # building pari $ pari_install # installing pari
- Recompile cysignals
$ sage -f cysignals # recompile cysignals (to be linked correctly against pari)
- Compile the last version of cypari
$ sage -pip install git+https://github.com/defeo/cypari2
- Recompile what needs to be
$ sage -br
Procedure to restore the standard PARI package in Sage
$ sage -f pari $ sage -f cysignals $ sage -f cypari $ sage -br
