Skip to content
A Library of Number Theory Code that depends on Sage (
Python C C++ Other
Branch: master
Clone or download
This branch is 82 commits ahead, 13 commits behind williamstein:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


This is the PSAGE library:

The target audience of PSAGE is research mathematicians, with an
emphasis on arithmetic geometry. PSAGE is closely related to Sage, but
is aimed squarely at research mathematicians.


  To build in place just do:

      sage develop

  To force all modules to rebuild do:
      sage develop -ba


  Install nose: 

      sage -sh; easy_install nose

  Then from the root of the psage install:
    nosetests -v --processes=8   # run 8 tests in parallel

  Do this to run 8 tests in parallel:

    sage -tp 8 --force_lib psage/

  A lot of doctests in certain parts of psage will fail.   This is because various authors wrote doctests for code
  as if it were in Sage (or as if the file is pre-imported), but for the tests to pass in Sage one must explicitly
  import functions from psage.  Fixing all this is something that needs to get done.

  In general, whenever you doctest in psage, do 

     sage -t --force_lib

  i.e., use the force_lib option.
You can’t perform that action at this time.