Changeset 7506


Ignore:
Timestamp:
Sep 10, 2009, 2:43:21 PM (14 years ago)
Author:
nariman
Message:

Create required directory structure for the installer. Modified file name changes to reflect latest versions used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • create_distribution.py

    r7489 r7506  
    3434from anuga.utilities.data_audit_wrapper import IP_verified
    3535
     36
    3637if platform == 'win32':
    3738    msg = 'This script is not written for Windows.'+\
     
    153154# Create ANUGA dir for NSI installer
    154155try:
    155     os.mkdir('files/%s' % anuga_release_name)   
     156    os.mkdir('files/%s' % anuga_release_name)
     157    os.mkdir('files/anuga_viewer')
     158    os.mkdir('files/prereqs')
     159    os.mkdir('files/prereqs/netcdf')
    156160except:
    157161    pass
    158 
    159162
    160163# and unpack ANUGA into it
     
    165168system(s)
    166169
    167 
    168170# Must be replaced by local folder to where SourceForge version is downloaded
    169 anuga_viewer_folder = 'anuga_viewer-1.0beta_7163'
     171anuga_viewer_folder = 'anuga_viewer'
    170172python = 'python-2.5.4.msi'
    171 numpy = 'Numeric-23.8.2.win32-py2.5.exe'
    172 scientific_python = 'ScientificPython-2.7.8.win32-py2.5.exe'
    173 netcdf_folder = 'net-cdf-3.6.1-win32'
     173numpy = 'numpy-1.3.0-win32-superpack-python2.5.exe'
     174scientific_python = 'ScientificPython-2.9.0.win32-py2.5.exe'
     175netcdf_folder = 'netcdf'
    174176mingw = 'MinGW-5.1.4.exe'
    175177
    176178# Generate NSI file
    177179create_config(revision,
    178               'https://datamining.anu.edu.au/anuga',
    179180              anuga_release_name,
    180181              anuga_viewer_folder,
     
    185186              mingw)
    186187
    187              
    188188# Package up files necessary to compile the installer on Windows and
    189189# move to release area
     
    210210
    211211# Copy actual files used by Windows installer across
    212 s = 'cd files; cp -r %s %s/windows_installer/files' % (anuga_release_name,
    213                                                        release_dir)
     212s = 'cd files; cp -r * %s/windows_installer/files' % release_dir
    214213print s
    215214system(s)                                                       
     
    352351   
    353352    #system('scp %s/*.pdf onielsen@cyclone:/d/cit/1/cit/risk_assessment_methods_project/downloads/ANUGA_install' %release_dir)#
    354 
    355 
    356    
    357353   
    358354print 'Remember to update'
Note: See TracChangeset for help on using the changeset viewer.