Changes between Version 42 and Version 43 of InstallWindowsSvn
- Timestamp:
- Mar 27, 2015, 10:07:44 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallWindowsSvn
v42 v43 8 8 == Python == 9 9 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).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. 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). 11 11 12 12 === Miniconda === … … 32 32 We need a gcc compiler with openmp support to install {{{anuga}}}. 33 33 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. 34 We suggest that you download and install the version of MinGW provided by [http://tdm-gcc.tdragon.net/ TDM-GCC]. 35 Mark the ``openmp`` and ``gfortran`` options in the "Choose Components" part of the installation. 36 37 We 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] 41 compiler=mingw32 42 }}} 43 37 44 38 45 == Manual install == … … 43 50 == Download ANUGA == 44 51 45 So now to actually installing anuga. First we need to get the anuga source code. 52 You should now have all the dependencies installed. You should fire up a new {{{cmd.exe}}} and install {{{anuga}}} 53 54 First we need to get the anuga source code. 46 55 47 56 === Zipped version === 48 57 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]58 A 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. 50 59 51 === Checkout anuga via svn ===60 === Checkout anuga via svn === 52 61 53 You can also check out the anuga repository using subversion. 62 You can also check out the anuga repository using subversion. 54 63 I suggest installing [http://tortoisesvn.net/downloads.html tortoise svn downloads] and then checking out the following svn repository. 55 64 When 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. … … 59 68 }}} 60 69 61 This should produce an anuga_core directory 70 === Checkout anuga via git === 71 72 The URL for the git repository to clone is 73 74 {{{ 75 https://github.com/GeoscienceAustralia/anuga_core.git 76 }}} 77 62 78 63 79 == Installing ANUGA == 80 81 You should now have an anuga_core directory. 64 82 65 83 Now go to the directory anuga_core and build and install anuga. … … 67 85 68 86 {{{ 69 python setup.py build --compiler=mingw32install87 python setup.py build install 70 88 }}} 71 89 … … 91 109 == Updating == 92 110 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). 111 From 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 94 113 95 114 Then again from the {{{anuga_core}}} directory recompile the code and check the unit tests via 96 115 97 116 {{{ 98 python setup.py build --compiler=mingw32install117 python setup.py install 99 118 python runtests.py 100 119 }}} 101 120 102 == Note ==103 104 You can add a text file {{{pydistutils.cfg}}} to your C:\Users\Username directory contaning the configuration info105 106 {{{107 [build]108 compiler=mingw32109 }}}110 111 so that the command112 113 {{{114 python setup.py install115 }}}116 117 will now build using the mingw32 compiler.