@@ -131,9 +131,8 @@ in the Installation Guide.
131131 - On personal computers, any subdirectory of your :envvar:` HOME `
132132 directory should do.
133133
134- - For example, you could use ` SAGE_ROOT=~/sage/sage-x.y ` , which we
135- will use as the running example below, where ` x.y ` is the
136- current Sage version.
134+ - For example, you could use ` SAGE_ROOT=~/sage/sage ` , which we
135+ will use as the running example below.
137136
138137 - You need at least 10 GB of free disk space.
139138
@@ -151,31 +150,19 @@ in the Installation Guide.
151150 capitalization when changing into :envvar:` SAGE_ROOT ` can lead to build
152151 errors for dependencies requiring exact capitalization in path names.
153152
154- 2 . Download/unpack or clone the sources.
153+ 2 . Clone the sources.
155154
156- - Go to https://www.sagemath.org/download-source.html , select a mirror,
157- and download the file :file:` sage-x.y.tar.gz ` .
155+ - Create the directory where ` SAGE_ROOT ` should be established:
158156
159- This compressed archive file contains the source code for Sage and
160- the source for all programs on which Sage depends.
157+ $ mkdir -p ~/sage
158+ $ cd ~/sage
161159
162- - After downloading the source tarball ` sage-x.y.tar.gz ` into
163- ` ~/sage/ ` :
164-
165- $ cd ~/sage/
166- $ tar xf sage-x.y.tar.gz # adapt x.y; takes a while
167-
168- This creates the subdirectory ` sage-x.y ` . Now change into it:
169-
170- $ cd sage-x.y/ # adapt x.y
171-
172- - [ Git] Alternatively, and required for Sage development, clone the Sage
173- git repository:
160+ - Clone the Sage git repository:
174161
175162 $ ORIG=https://github.com/sagemath/sage.git
176- $ git clone -c core.symlinks=true --branch develop --tags $ORIG
163+ $ git clone -c core.symlinks=true --origin upstream -- branch develop --tags $ORIG
177164
178- This will create the directory ` sage ` . (See the section
165+ This will create the subdirectory ` ~/sage/ sage` . (See the section
179166 [ Setting up git] ( https://doc.sagemath.org/html/en/developer/git_setup.html )
180167 and the following sections in the Sage Developer's Guide
181168 for more information.)
@@ -190,11 +177,8 @@ in the Installation Guide.
190177 build will not work if Windows line endings rather than UNIX
191178 line endings are used.
192179
193- Therefore it is crucial that you unpack the source tree from the
194- WSL ` bash ` using the WSL ` tar ` utility and not using other
195- Windows tools (including mingw). Likewise, when using ` git ` , it
196- is recommended (but not necessary) to use the WSL version of
197- ` git ` .
180+ Therefore it is recommended (but not necessary) to use the
181+ WSL version of ` git ` .
198182
1991833 . [ Linux, WSL] Install the required minimal build prerequisites.
200184
@@ -473,7 +457,7 @@ Directory Layout
473457
474458Simplified directory layout (only essential files/directories):
475459```
476- SAGE_ROOT Root directory (sage-x.y in Sage tarball )
460+ SAGE_ROOT Root directory (create by git clone )
477461├── build
478462│ └── pkgs Every package is a subdirectory here
479463│ ├── 4ti2/
0 commit comments