Changes between Version 5 and Version 6 of InstallWindows


Ignore:
Timestamp:
Jul 9, 2011 10:59:21 AM (10 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallWindows

    v5 v6  
    11= Installing GSAS-II on Windows =
    22
    3 Prerequisites: Before GSAS-II can be installed on your computer, you must install two software packages: python and subversion. These packages are distributed in a number of forms and are discussed below. Note that at present GSAS-II is only distributed via subversion. If you work at an institution with a firewall that blocks downloading files from subversion (uncommon, but known), contact your computer support department or arrange to perform the download from another location.
     3Prerequisites: Before GSAS-II can be installed on your computer, you must install two software packages: python and subversion. These packages are distributed in a number of forms and are discussed below. Note that at present GSAS-II is only distributed via subversion. If you work at an institution with a firewall that blocks downloading files from subversion (uncommon, but known), contact your networking support department or arrange to perform the download from another location.
     4If you can help expand any of these instructions, discover new mechanisms for installing Python, or have problems getting this to work, please let [mailto:Brian.Toby@ANL.gov me know].
    45
    56=== Python ===
    67
    7 Python is a computer scripting language, which means that one must have the Python interpreter installed on your computer to run a Python program. However, there are a number of [PythonPackages Python packages required by GSAS-II] that are not distributed within Python, so not just any distribution of the Python interpreter will do. For development, we use [http://www.enthought.com/products/epd.php EPD], but expect the other distribution options do will fine. Python and all the required packages are open source, so you could in theory download the source code for each one and compile them yourself. Select and download one of the packages below and follow directions provided on that site for installation. If you can help expand any of these instructions, discover new mechanisms for installing Python or have any problems, please let [mailto:Brian.Toby@ANL.gov me know]
     8Python is a computer scripting language, which means that one must have the Python interpreter installed on your computer to run a Python program. However, there are a number of [PythonPackages Python packages required by GSAS-II] that are not distributed within Python, so not just any distribution of the Python interpreter will do. For development, we use [http://www.enthought.com/products/epd.php EPD], but expect the other distribution options do will fine. Python and all the required packages are open source, so you could in theory download the source code for each one and compile them yourself. Select and download one of the packages below and follow directions provided on that site for installation.
    89
    910 * [http://www.enthought.com/products/epd.php Enthought Python Distribution (EPD)] is a commercially licensed Python package that features differing levels of support. To install, download the .msi file and click on it to invoke the windows installer. Note that this package can be installed without administrator privileges -- I think -- if you install it for only your own use. You may have to choose an install location that you own (a subdirectory of My Documents, for example.)
     
    2728GSAS-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.
    2829
    29 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 simply typing "{{{scons}}}" in a {{{cmd.exe}}} (DOS) window after setting your working directory to {{{...\GSASII\fsource}}}. If you need to change any options, type "{{{scons help}}}" to see a list of the possible command-line arguments and the values for the options. For testing, help can be used with command-line options to see how they will change the variables.
     30To 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 (1) running {{{cmd.exe}}} to open a "DOS" window, (2) use the volume name (when needed) and the {{{cd}} command to set your working directory to {{{...\GSASII\fsource}}} and (3) simply typing "{{{scons}}}" in the window.
     31
     32If you need to change any options, type "{{{scons help}}}" to see a list of the possible command-line arguments and the values for the options. For testing, help can be used with command-line options to see how they will change the variables.