Changes between Version 42 and Version 43 of InstallWindowsSvn


Ignore:
Timestamp:
Mar 27, 2015, 10:07:44 AM (10 years ago)
Author:
steve
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallWindowsSvn

    v42 v43  
    88== Python ==
    99
    10 We use {{{python}}} as our programming environment together with a number of standard python packages such as {{{numpy, scipy, matplotlib, netcdf4}}}.  One way to install all the required packages is to use a distribution like {{{python_xy}}}, {{{Anaconda}}} and the related {{{miniconda}}} environments. I suggest {{{miniconda}}} as it allow you to only install the packages that ae needed (so is a bit quicker).
     10We use {{{python}}} as our programming environment together with a number of standard python packages such as {{{numpy, scipy, matplotlib, netcdf4}}}.  One way to install all the required packages is to use a distribution like {{{python_xy}}}, {{{Anaconda}}} and the related {{{miniconda}}} environments. Also itshould be possible to download the appropriate pre-compiled packages from [http://www.lfd.uci.edu/~gohlke/pythonlibs]. I suggest {{{miniconda}}} as it allows you to only install the packages that are needed (so is a bit quicker).
    1111
    1212=== Miniconda ===
     
    3232We need a gcc compiler with openmp support to install {{{anuga}}}.
    3333
    34 We suggest that you download and install the version of [http://www.mingw.org/ MinGW] provided by [http://tdm-gcc.tdragon.net/ TDM-GCC].
    35 Mark the ``openmp`` and ``gfortran`` options in the "Choose Components" part of
    36 the installation.
     34We suggest that you download and install the version of MinGW provided by [http://tdm-gcc.tdragon.net/ TDM-GCC].
     35Mark the ``openmp`` and ``gfortran`` options in the "Choose Components" part of the installation.
     36
     37We need to force the {{{python}}} installation scripts to use this compiler. Add a configuratoin file named {{{pydistutils.cfg}}} to your home directory {{{C:\Users\yourName}}} with the contents
     38
     39{{{
     40[build]
     41compiler=mingw32
     42}}}
     43
    3744
    3845== Manual install ==
     
    4350== Download ANUGA ==
    4451
    45 So now to actually installing anuga. First we need to get the anuga source code.
     52You should now have all the dependencies installed. You should fire up a new {{{cmd.exe}}} and install {{{anuga}}}
     53
     54First we need to get the anuga source code.
    4655
    4756=== Zipped version ===
    4857
    49 A zipped version of the latest development version of anuga is available from github at [https://github.com/stoiver/anuga_core/archive/master.zip] and the latest released version at sourceforge [http://sourceforge.net/projects/anuga/files/anuga_1.3/anuga_1.3.10.zip]
     58A zipped version of the latest development version of {{{anuga}}} is available from github at [https://github.com/GeoscienceAustralia/anuga_core/archive/master.zip] and the latest released version at sourceforge [http://sourceforge.net/projects/anuga/files/anuga_1.3/anuga_1.3.10.zip] You will need to unzip the file into a directory called {{{anuga_core}}} perhaps in your home directory.
    5059
    51 === Checkout anuga via svn ===
     60=== Checkout anuga via svn  ===
    5261
    53 You can also check out the anuga repository using subversion. 
     62You can also check out the anuga repository using subversion.
    5463I suggest installing [http://tortoisesvn.net/downloads.html tortoise svn downloads] and then checking out the following svn repository.
    5564When you installed {{{tortoise svn}}} it creates a few extra menu items to your right click menu in the file manager. Just choose "tortoise" checkout to download the code.
     
    5968}}}
    6069
    61 This should produce an anuga_core directory
     70=== Checkout anuga via git ===
     71
     72The URL for the git repository to clone is
     73
     74{{{
     75https://github.com/GeoscienceAustralia/anuga_core.git
     76}}}
     77
    6278
    6379== Installing ANUGA ==
     80
     81You should now have an anuga_core directory.
    6482
    6583Now go to the directory anuga_core and build and install anuga.
     
    6785
    6886{{{
    69 python setup.py build --compiler=mingw32 install
     87python setup.py build install
    7088}}}
    7189
     
    91109== Updating ==
    92110
    93 From time to time you should update your version of anuga. This is fairly easy. Just choose the directory to "update" and then right click and choose "tortoise update" to update the code (if you checkout {{{anuga}}} using subversion).
     111From time to time you should update your version of anuga. This is fairly easy if you used subversion or git to obtain the source. You will then just need to {{{update}}} (with subversion) or {{{pull}}} (with git).
     112
    94113
    95114Then again from the {{{anuga_core}}} directory recompile the code and check the unit tests via
    96115
    97116{{{
    98 python setup.py build --compiler=mingw32 install
     117python setup.py install
    99118python runtests.py
    100119}}}
    101120
    102 == Note ==
    103 
    104 You can add a text file {{{pydistutils.cfg}}} to your C:\Users\Username directory contaning the configuration info
    105 
    106 {{{
    107 [build]
    108 compiler=mingw32
    109 }}}
    110 
    111 so that the command
    112 
    113 {{{
    114 python setup.py install
    115 }}}
    116 
    117 will now build using the mingw32 compiler.