@@ -45,13 +45,14 @@ branch.
4545Supplied Binary Files
4646---------------------------
4747
48- The GSAS-II binaries are supplied on GitHub as "release" files,
48+ The GSAS-II binaries are supplied on GitHub as "release" files, in
4949https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/releases/latest. In
50- that location, the files are in tar archives named `prefix_pX.X_nY.Y.tgz `
51-
52- The supplied binaries are placed in a subdirectory name with name
50+ that location, the files are in tar archives named as
5351`prefix `\ _p\ `X.X `\ _n\ `Y.Y ` where
54- `prefix ` is noted below and `X.X ` is the Python version and `Y.Y ` is the numpy
52+ `prefix ` is noted below and `X.X ` is the Python version and `Y.Y ` is
53+ the numpy version:
54+
55+ Prefix naming:
5556
5657 * Windows-10: 64-bit Intel-compatible processors. [Prefix `win_64_ `\ ]
5758 * MacOS: Intel processors. [Prefix `mac_64_ `\ ]
@@ -70,7 +71,7 @@ Compiling with meson for Linux/MacOS
7071Compiling GSAS-II binaries is quite simple on Linux and MacOS and a
7172bit more complex on Windows.
7273One needs to install the
73- Python meson and cython packages and a C compiler and the Gfortran
74+ Python meson and cython packages and a C compiler and the GFortran
7475compiler.
7576
7677On Linux it probably best to use compilers supplied with the
@@ -94,29 +95,29 @@ steps (1) and (3), below. In that case use command::
9495
9596 source .../g2full/bin/activate
9697
97- to activate Python/conda, where `.../g2full` is the location where gsas2full was
98- installed. And in place of step (3) use command::
98+ to activate Python/conda, where `.../g2full ` is the location where gsas2full was
99+ installed. And in place of step (3) use command::
99100
100101 cd .../g2full/GSAS-II
101102
102- where again `.../g2full` is the location where gsas2full was installed.
103+ where again `.../g2full ` is the location where gsas2full was installed.
103104
104- 1. Install an initial, bare-bones Python environment can be installed
105+ (1) Install an initial, bare-bones Python environment can be installed
105106using the miniforge installer from conda-forge at
106107https://github.com/conda-forge/miniforge/releases/latest. Then
107108activate Python/conda as instructed by the installer (or use command::
108109
109110 source ~/miniforge3/bin/activate
110- where `~/miniforge3` is the location where miniforge was installed.)
111- Then use the conda command to install the following packages to run GSAS-II:
111+ where `~/miniforge3 ` is the location where miniforge was installed.)
112+ Then use the conda command to install the following packages to run GSAS-II:
112113
113114 python, numpy, matplotlib, scipy, wxpython, pyopengl, imageio, h5py,
114115 hdf5, pillow, requests, pycifrw, pybaselines, git, gitpython, conda
115116
116- (see `the GUI requirement section of the Developers manual
117+ (see `the GUI requirement section of the Developers manual
117118<https://gsas-ii.readthedocs.io/en/latest/packages.html#gui-requirements> `_.)
118119
119- 2. Install the Python build routines and the compilers:
120+ (2) Install the Python build routines and the compilers:
120121
121122MacOS::
122123
@@ -127,6 +128,7 @@ Linux::
127128 sudo apt-get gcc gfortran git # or use the yum command:
128129 yum install gcc-gfortran git
129130
131+ and for Linux::
130132 conda python numpy install meson cython -c conda-forge
131133
132134Note that the GSAS-II binaries will be compiled to work with a
@@ -137,26 +139,26 @@ specifying them in the conda command (such as using `python=3.13` and
137139`numpy=2.2 ` in place of `python ` and `numpy ` above) to match the
138140environment where GSAS-II will be run.
139141
140- 3. Download the GSAS-II sources (if not already done) and move to the directory::
142+ (3) Download the GSAS-II sources (if not already done) and move to the directory::
141143
142144 cd <...> # select where you wish to install GSAS-II
143145 git clone https://github.com/AdvancedPhotonSource/GSAS-II.git --depth 1 -b main G2
144146 cd G2
145147
146- 4. Create a scratch directory to compile GSAS-II into::
148+ (4) Create a scratch directory to compile GSAS-II into::
147149
148150 meson setup /tmp/GSASIIc
149151
150- Note that this command will fail if cython, gfortran and a c
152+ Note that this command will fail if cython, GFortran and a c
151153 complier is not found. If the flang compiler is found, meson will
152154 use it, but the resulting binaries will not work properly.
153155
154- 5. Move to the setup directory and compile::
156+ (5) Move to the setup directory and compile::
155157
156158 cd /tmp/GSASIIc
157159 meson compile
158160
159- 6. There are two choices for how to install the GSAS-II binaries to
161+ (6) There are two choices for how to install the GSAS-II binaries to
160162 where they can be found by the software. If only one user will use
161163 GSAS-II, use option (A), which also allows multiple GSAS-II installations to share a
162164 single set of binaries (should a user wish to keep multiple
@@ -184,11 +186,11 @@ environment where GSAS-II will be run.
184186 installed into `~/software/G2 ` and the binaries will be installed into
185187 `~/software/G2/GSASII/bin `.
186188
187- 7. (Optional) Clean up:
189+ (7) (Optional) Clean up:
188190
189191 rm -rf /tmp/GSASIIc
190192
191- 8. (Optional) Run Self-tests::
193+ (8) (Optional) Run Self-tests::
192194
193195 conda activate base
194196 conda install pytest
@@ -199,7 +201,7 @@ environment where GSAS-II will be run.
199201 environment that was used if not base and `.../G2` here and below will be the
200202 location used to install GSAS-II in step (2).
201203
202- 9. (Optional) Create shortcuts:
204+ (9) (Optional) Create shortcuts:
203205
204206 Linux::
205207
@@ -214,7 +216,7 @@ Compiling with meson for Windows
214216
215217Compiling GSAS-II binaries is bit more complex on Windows because
216218separate Python environments *must * be used for compilation and
217- running GSAS-II (it appears that inclusion of git and gfortran in the
219+ running GSAS-II (it appears that inclusion of git and GFortran in the
218220same installation causes problems with accessing libraries needed by the compiler).
219221There are other ways potentially to install the tools
220222needed for compilation, but use of conda will be much simpler, but
@@ -226,12 +228,12 @@ steps (1) and (2), below. In that case, use command::
226228
227229 ...\g2full\Scripts\activate
228230
229- to activate Python/conda, where `...\g2full` is the location where gsas2full was
230- installed. And in place of step (3) use command::
231+ to activate Python/conda, where `...\ \g2full ` is the location where gsas2full was
232+ installed. And in place of step (3) use command::
231233
232234 cd ...\g2full\GSAS-II
233235
234- where again `...\g2full` is the location where gsas2full was installed.
236+ where again `...\ \g2full ` is the location where gsas2full was installed.
235237
2362381. Install miniforge
237239
@@ -242,28 +244,29 @@ steps (1) and (2), below. In that case, use command::
242244
243245 ...\miniforge3\Scripts\activate
244246
245- where `...\miniforge3 ` is the location where miniforge was
247+ where `...\\ miniforge3 ` is the location where miniforge was
246248 installed to enable the Python/conda environment. Or in the start
247249 menu use the "Start miniforge prompt" command which does the same
248250 thing.
249251
250- Use this command to install the following packages to run GSAS-II:::
252+ Use this command to install the following packages to run GSAS-II
253+ (note this is a very long line)::
251254
252255 conda install python numpy matplotlib wxpython pyopengl scipy git gitpython PyCifRW pillow conda requests hdf5 h5py imageio zarr xmltodict pybaselines seekpath pywin32 -c conda-forge -y
253256
254- (see `the GUI requirement section of the Developers manual
255- <https://gsas-ii.readthedocs.io/en/latest/packages.html#gui-requirements> `_
256- for more info.)
257+ (see `the GUI requirement section of the Developers manual
258+ <https://gsas-ii.readthedocs.io/en/latest/packages.html#gui-requirements> `_
259+ for more info.)
257260
2582612. Download the GSAS-II sources (if not already done) and move to the directory::
259262
260- cd <...> # select where you wish to install GSAS-II
261- git clone https://github.com/AdvancedPhotonSource/GSAS-II.git --depth 1 -b main G2
262- cd G2
263+ cd <...> # select where you wish to install GSAS-II
264+ git clone https://github.com/AdvancedPhotonSource/GSAS-II.git --depth 1 -b main G2
265+ cd G2
263266
2642673. Install the Python build routines and the compilers. Note that this
265268 is done in separate environment that is located in directory
266- `..\compile ` relative to GSAS-II::
269+ `..\\ compile ` relative to GSAS-II::
267270
268271 conda create -p ..\compile meson cython gcc gfortran python numpy -c conda-forge -y
269272
@@ -290,8 +293,8 @@ for more info.)
290293
291294 meson compile local-install
292295
293- This command will copy the compiled files to `.GSASII\bin` in the
294- Home directory (usually `c:\Users\<your name>`), which
296+ This command will copy the compiled files to `.GSASII\\ bin` in the
297+ Home directory (usually `c:\\ Users\ \<your name>`), which
295298 is appropriate for when one user will access the GSAS-II
296299 program.
297300
@@ -301,16 +304,16 @@ for more info.)
301304 meson compile system-install
302305
303306 If the first command used was `cd software ` then GSAS-II was
304- installed into `software\G2 ` and the binaries will be installed into
305- `software\G2\GSASII\bin `.
307+ installed into `software\\ G2 ` and the binaries will be installed into
308+ `software\\ G2\\ GSASII\ \bin `.
306309
3073107. Clean up::
308311
309312 cd ..
310313 rmdir /s tmp
311314 rmdir /s compile
312315
313- 8. Create shortcuts:
316+ 8. Create shortcuts::
314317
315318 python G2\GSASII\install\makeBat.py
316319
@@ -330,7 +333,7 @@ work only with Python 3.11 or older and only with the `master`
330333branch. Do not use GSAS-II will fail with Python earlier than 3.7 and may have
331334some errors even with Python 3.8.
332335
333- The compilation process requires installation of the gcc and gfortran
336+ The compilation process requires installation of the gcc and GFortran
334337compilers. Others will probablu not work. Also, the Python Scons
335338package must be installed into Python. compilation is done with
336339commands::
0 commit comments