Skip to content

Commit 03a2acf

Browse files
author
Matthias Koeppe
committed
src/doc/en/installation/conda.rst: Update for versioned environment-... files
1 parent 6127016 commit 03a2acf

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/doc/en/installation/conda.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,16 @@ from source as follows:
7575
- Create a new conda environment including all standard packages
7676
recognized by sage, and activate it::
7777

78-
$ conda env create --file environment.yml --name sage-build
78+
$ conda env create --file environment-3.11.yml --name sage-build
7979
$ conda activate sage-build
8080

81-
Alternatively, use ``environment-optional.yml`` in place of
81+
Alternatively, use ``environment-optional-3.11.yml`` in place of
8282
``environment.yml`` to create an environment with all standard and optional
8383
packages recognized by sage.
8484

85+
A different Python version can be selected by replacing ``3.11`` by ``3.9``
86+
or ``3.10`` in these commands.
87+
8588
- Then the SageMath distribution will be built using the compilers provided by Conda
8689
and using many packages installed by Conda::
8790

@@ -123,16 +126,15 @@ Here we assume that you are using a git checkout.
123126
- Create and activate a new conda environment with the dependencies of Sage
124127
and a few additional developer tools::
125128

126-
$ mamba env create --file src/environment-dev.yml --name sage-dev
129+
$ mamba env create --file src/environment-dev-3.11.yml --name sage-dev
127130
$ conda activate sage-dev
128131

129-
Alternatively, you can use ``src/environment.yml`` or
130-
``src/environment-optional.yml``, which will only install standard
132+
Alternatively, you can use ``src/environment-3.11.yml`` or
133+
``src/environment-optional-3.11.yml``, which will only install standard
131134
(and optional) packages without any additional developer tools.
132135

133-
By default, the most recent version of Python supported by Sage is
134-
installed. You can use the additional option ``python=3.9`` in the above
135-
``env create`` command to select another Python version (here 3.9).
136+
A different Python version can be selected by replacing ``3.11`` by ``3.9``
137+
or ``3.10`` in these commands.
136138

137139
- Install the build prerequisites and the Sage library::
138140

@@ -142,7 +144,7 @@ Here we assume that you are using a git checkout.
142144
- Verify that Sage has been installed::
143145

144146
$ sage -c 'print(version())'
145-
SageMath version 9.6.beta5, Release Date: 2022-03-12
147+
SageMath version 10.2.beta4, Release Date: 2023-09-24
146148

147149
Note that ``make`` is not used at all. All dependencies
148150
(including all Python packages) are provided by conda.
@@ -162,7 +164,7 @@ After editing any Cython files, rebuild the Sage library using::
162164

163165
In order to update the conda environment later, you can run::
164166

165-
$ mamba env update --file src/environment-dev.yml --name sage-dev
167+
$ mamba env update --file src/environment-dev-3.11.yml --name sage-dev
166168

167169
To build the documentation, use::
168170

0 commit comments

Comments
 (0)