Changes between Version 1 and Version 2 of CompilingWindows


Ignore:
Timestamp:
Jan 8, 2020 11:41:24 PM (22 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilingWindows

    v1 v2  
    33GSAS-II requires a small number of Fortran routines that are incorporated as Python packages (.pyd files). GSAS-II is distributed with these files compiled for a number of python versions, but if you are using something that does not match what we distribute, you may need to compile the Fortran routines yourself using the !NumPy f2py routine and the compiler of your choice. Both G77 (32-bit Python only) and GFortran have been successful on the platforms we have tried.
    44
    5 To help with compiling the programs, use the python scons routine inside the GSASII\fsource directory. If you are lucky, this routine will find the needed compiler and python program, set all options correctly for you and run all steps needed to prepare the .pyd files. This is done by
     5Probably the easiest way to do this is with the Anaconda Python distribution, which allows a compiler and scons to be installed in a single step:
     6
     7{{{
     8conda install scons numpy m2w64-gcc-fortran
     9}}}
     10
     11You may want to specify a particular numpy version using
     12
     13{{{
     14conda install scons numpy=1.17 m2w64-gcc-fortran
     15}}}
     16
     17
     18To help with compiling the programs, use the Python scons routine inside the GSASII\fsource directory. If you are lucky, this routine will find the needed compiler and python program, set all options correctly for you and run all steps needed to prepare the .pyd files. This is done by
     19
    620 (1) running {{{cmd.exe}}} to open a "DOS" window,
    721