Changeset 7503


Ignore:
Timestamp:
Sep 10, 2009, 12:54:57 PM (11 years ago)
Author:
nariman
Message:

It now complies with the ANUGA style guide. Hardcoded the http address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installation_files/windows/installer.py

    r7488 r7503  
    11def create_config(product_version,
    2                   homepage,
    32                  anuga_folder,
    43                  anuga_viewer_folder,
     
    1211        """
    1312       
    14         file = open("config.nsh", "w")
     13        file = open('config.nsh', 'w')
    1514
    16         file.write("!ifndef __CONFIG_NSH\n")
    17         file.write("!define __CONFIG_NSH\n")
    18         file.write("; custom config\n")
    19         file.write("; definitions should be quite self-explaining\n")
    20         file.write("\n")
    21         file.write("; global definitions\n")
    22         file.write("!define ProductName \"ANUGA\"\n")
    23         file.write("!define ProductVersion \"" + product_version + "\"\n")
    24         file.write("!define Company \"Geoscience Australia\"\n")
    25         file.write("!define Website \"" + homepage + "\"\n")
    26         file.write("!define ExecutableName \"AnugaSetup.exe\"\n")
    27         file.write("\n")
    28         file.write("; distribution file sources (for compiling the installer)\n")
    29         file.write("!define WelcomeFinishBitmap \"wf.bmp\"\n")
    30         file.write("!define HeaderBitmap \"header.bmp\"\n")
    31         file.write("!define InstallerIcon \"installer.ico\"\n")
    32         file.write("!define FileSource \"files\"\n")
    33         file.write("\n")
    34         file.write("!define AnugaFolder \"" + anuga_folder + "\"\n")
    35         file.write("!define AnugaViewerFolder \"" + anuga_viewer_folder + "\"\n")
    36         file.write("!define PythonInst \"" + python + "\"\n")
    37         file.write("!define NumpyInst \"" + numpy + "\"\n")
    38         file.write("!define ScientificInst \"" + scientific_python + "\"\n")
    39         file.write("!define NetCDFFolder \"" + netcdf + "\"\n")
    40         file.write("!define MinGWInst \"" + mingw + "\"\n")
    41         file.write("\n")
    42         file.write("""; registry and advanced information for the installation routine
     15        file.write('''!ifndef __CONFIG_NSH
     16!define __CONFIG_NSH
     17; custom config
     18; definitions should be quite self-explaining
     19
     20; global definitions
     21!define ProductName "ANUGA"
     22''')       
     23        file.write('!define ProductVersion "' + product_version + '"\n')
     24        file.write('''!define Company "Geoscience Australia"
     25!define Website "https://datamining.anu.edu.au/anuga"
     26!define ExecutableName "AnugaSetup.exe"
     27
     28; distribution file sources (for compiling the installer)
     29!define WelcomeFinishBitmap "wf.bmp"
     30!define HeaderBitmap "header.bmp"
     31!define InstallerIcon "installer.ico"
     32!define FileSource "files"
     33
     34''')   
     35        file.write('!define AnugaFolder "' + anuga_folder + '"\n')
     36        file.write('!define AnugaViewerFolder "' + anuga_viewer_folder + '"\n')
     37        file.write('!define PythonInst "' + python + '"\n')
     38        file.write('!define NumpyInst "' + numpy + '"\n')
     39        file.write('!define ScientificInst "' + scientific_python + '"\n')
     40        file.write('!define NetCDFFolder "' + netcdf + '"\n')
     41        file.write('!define MinGWInst "' + mingw + '"\n\n')
     42        file.write('''; registry and advanced information for the installation routine
    4343!define AnugaViewerDefaultFolder "$PROGRAMFILES\Anuga Viewer"
    4444!define NetCDFDefaultFolder "$COMMONFILES\NetCDF"
     
    5050!define UninstallerExecutableName "Uninst_Anuga.exe"
    5151
    52 !endif""")
     52!endif''')
    5353
    5454        file.close()
Note: See TracChangeset for help on using the changeset viewer.