Processing Math: Done
jsMath
Differences between revisions 2 and 10 (spanning 8 versions)
Revision 2 as of 2018-02-15 15:09:17
Size: 1517
Editor: saraedum
Comment: 12426 has been merged.
Revision 10 as of 2020-10-30 22:46:21
Size: 1816
Editor: isuruf
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Experimental [[https://conda.io/docs/|Conda]] packages for Linux & OSX are available through [[https://conda-forge.github.io/|conda-forge]]. {{https://conda.io/docs/_images/conda_logo.svg||width=400px}}

[[https://conda.io/docs/|Conda]] packages for Linux & OSX are available through [[https://conda-forge.github.io/|conda-forge]].
Line 9: Line 11:
 * Install [[https://conda.io/miniconda.html|Miniconda for Python 3]] (Python 2 version fails to copy "Hängematte" which comes with rw)  * Install [[https://github.com/conda-forge/miniforge#download|Miniforge3]]
Line 12: Line 14:
 * Add the `conda-forge` channel: `conda config --add channels conda-forge`
* Update all packages: `conda update --all` (otherwise you get weird errors due to inconsistencies later)
 * create an environment for sage: `conda create -n sage sagelib future`
 * Use conda-forge packages: `conda config --add channels conda-forge; conda config --set channel_priority strict`
 * create an environment for sage: `conda create -n sage sage`
Line 18: Line 19:
= Development = = Maintenance =
Line 21: Line 22:

= Conda for Sage Developers =

You can develop Sage without building any of its dependencies (experimental). On my machine this takes 5 minutes:

{{{
exportSAGENUMTHREADS=24 conda install mamba
mambacreatensagebuildsageboostcpp conda activate sage-build
mambauninstallforcesagelib ./configure --prefix=CONDAPREFIX cd src
pythonsetup.pyinstall sage -c 'print(version())'
SageMath version 9.2, Release Date: 2020-10-24
}}}
Line 29: Line 47:
== MacOS ==
Packages do not exist yet. --(We are waiting for #12426 to get merged.)--

https://conda.io/docs/_images/conda_logo.svg

Conda packages for Linux & OSX are available through conda-forge.

Setting Up

In short: Install sage from conda-forge.

To install sage on your machine (without the need for root permissions):

  • Install Miniforge3

  • export your PATH (and hash -r or rehash)

  • Make sure your locale is UTF-8.
  • Use conda-forge packages: conda config --add channels conda-forge; conda config --set channel_priority strict

  • create an environment for sage: conda create -n sage sage

  • enter your environment: source activate sage

  • enjoy: sage

Maintenance

The packages necessary to run sage are developed on the github pages of conda-forge. The actual sage package and many of its dependencies are maintained by Isuru Fernando (and a few volunteers).

Conda for Sage Developers

You can develop Sage without building any of its dependencies (experimental). On my machine this takes 5 minutes:

$ export SAGE_NUM_THREADS=24
$ conda install mamba
$ mamba create -n sage-build sage boost-cpp
$ conda activate sage-build
$ mamba uninstall --force sagelib
$ ./configure --prefix=$CONDA_PREFIX
$ cd src
$ python setup.py install
$ sage -c 'print(version())'
SageMath version 9.2, Release Date: 2020-10-24

Open Issues

General

There are still some issues with Conda. Not all tests pass and some things don't work:

  • #20382

Windows

There is likely not going to be a working package in the near future, see https://groups.google.com/d/msg/sage-devel/wyaV8x5qolI/jVS4DKBvCAAJ.

Conda (last edited 2024-08-28 05:30:57 by mkoeppe)