Changeset 249bae9 in sasview


Ignore:
Timestamp:
Apr 10, 2009 7:44:26 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
272b107
Parents:
3740b11
Message:

SansView?: Build script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/build_sansview.py

    r40f9745 r249bae9  
    1111# 
    1212# py2exe must be installed  
     13# 
     14# mingw must be installed 
    1315# 
    1416# Usage: 
     
    1921#   -t: Builds SansView from the trunk. 
    2022#   -i: Builds an installer from the release version. 
     23#   -n: Print out the dependencies for the release notes 
    2124 
    2225import os 
    2326import shutil 
    2427 
    25 PYTHON = "c:\python25\python" 
     28PYTHON = "python" 
    2629SVN    = "svn" 
    2730INNO   = "\"c:\Program Files\Inno Setup 5\ISCC\"" 
     
    3538PLOTTOOLS  = "0.1.3" 
    3639UTIL       = "0.1" 
     40PARK       = "1.2.x" 
     41 
     42SANSMODELS_URL = "svn://danse.us/sans/releases/sansmodels-%s" % SANSMODELS 
     43DATALOADER_URL = "svn://danse.us/sans/releases/DataLoader-%s" % DATALOADER 
     44GUICOMM_URL = "svn://danse.us/sans/releases/guicomm-%s" % GUICOMM 
     45GUIFRAME_URL = "svn://danse.us/sans/releases/guiframe-%s" % GUIFRAME 
     46PLOTTOOLS_URL = "svn://danse.us/common/releases/plottools-%s/trunk" % PLOTTOOLS 
     47UTIL_URL = "svn://danse.us/common/releases/util-%s" % UTIL 
     48SANSVIEW_URL = "svn://danse.us/sans/releases/sansview-%s" % SANSVIEW 
     49#TODO: need to use the release branch of PARK once it is created 
     50PARK_URL = "svn://danse.us/park/branches/park-1.2" 
    3751 
    3852# Installation folder 
     
    8296    os.system("%s checkout -q %s" % (SVN, url))         
    8397    os.chdir(setup_dir) 
     98    os.system("%s setup.py build -cmingw32" % PYTHON) 
    8499    os.system("%s setup.py install" % PYTHON) 
    85100     
     
    92107    os.chdir(wd) 
    93108    if release: 
    94         install_pkg(".", "sansmodels-%s/src" % SANSMODELS, "svn://danse.us/sans/releases/sansmodels-%s" % SANSMODELS) 
     109        install_pkg(".", "sansmodels-%s/src" % SANSMODELS, SANSMODELS_URL) 
    95110    else: 
    96111        install_pkg(".", "sansmodels/src", "svn://danse.us/sans/trunk/sansmodels") 
     
    98113    os.chdir(wd) 
    99114    if release: 
    100         install_pkg(".", "DataLoader-%s" % DATALOADER, "svn://danse.us/sans/releases/DataLoader-%s" % DATALOADER) 
     115        install_pkg(".", "DataLoader-%s" % DATALOADER, DATALOADER_URL) 
    101116    else: 
    102117        install_pkg(".", "DataLoader", "svn://danse.us/sans/trunk/DataLoader") 
     
    104119    os.chdir(wd) 
    105120    if release: 
    106         install_pkg(".", "guicomm-%s" % GUICOMM, "svn://danse.us/sans/releases/guicomm-%s" % GUICOMM) 
     121        install_pkg(".", "guicomm-%s" % GUICOMM, GUICOMM_URL) 
    107122    else: 
    108123        install_pkg(".", "guicomm", "svn://danse.us/sans/trunk/guicomm") 
     
    110125    os.chdir(wd) 
    111126    if release: 
    112         install_pkg(".", "guiframe-%s" % GUIFRAME, "svn://danse.us/sans/releases/guiframe-%s" % GUIFRAME) 
     127        install_pkg(".", "guiframe-%s" % GUIFRAME, GUIFRAME_URL) 
    113128    else: 
    114129        install_pkg(".", "guiframe", "svn://danse.us/sans/trunk/guiframe") 
     
    116131    os.chdir(wd) 
    117132    if release: 
    118         install_pkg("plottools-%s" % PLOTTOOLS, "trunk", "svn://danse.us/common/releases/plottools-%s/trunk" % PLOTTOOLS) 
     133        install_pkg("plottools-%s" % PLOTTOOLS, "trunk", PLOTTOOLS_URL) 
    119134    else: 
    120135        install_pkg("plottools", "trunk", "svn://danse.us/common/plottools/trunk") 
     
    122137    os.chdir(wd) 
    123138    if release: 
    124         install_pkg(".", "util-%s" % UTIL, "svn://danse.us/common/releases/util-%s" % UTIL) 
     139        install_pkg(".", "util-%s" % UTIL, UTIL_URL) 
    125140    else: 
    126141        install_pkg(".", "util", "svn://danse.us/common/util") 
     
    129144    os.chdir(wd) 
    130145    if release: 
     146        install_pkg(".", "park-1.2", PARK_URL) 
     147    else: 
    131148        install_pkg(".", "park-1.2", "svn://danse.us/park/branches/park-1.2") 
    132     else: 
    133         install_pkg(".", "park-1.2", "svn://danse.us/park/branches/park-1.2") 
    134      
    135     os.chdir(wd) 
    136     if release: 
    137         os.system("%s checkout svn://danse.us/sans/releases/sansview-%s" % (SVN, SANSVIEW)) 
     149     
     150    os.chdir(wd) 
     151    if release: 
     152        os.system("%s checkout %s" % (SVN, SANSVIEW_URL)) 
    138153    else: 
    139154        os.system("%s checkout svn://danse.us/sans/trunk/sansview" % SVN) 
     
    165180            print "    -t: Builds SansView from the trunk" 
    166181            print "    -i: Builds an installer from the release version"         
     182            print "    -n: Print out the dependencies for the release notes" 
     183        if sys.argv[1]=="-n": 
     184            print SANSMODELS_URL  
     185            print DATALOADER_URL  
     186            print GUICOMM_URL  
     187            print GUIFRAME_URL  
     188            print PLOTTOOLS_URL  
     189            print UTIL_URL  
     190            print SANSVIEW_URL  
     191            print PARK_URL  
    167192        else: 
    168193            # Prepare installation folder 
Note: See TracChangeset for help on using the changeset viewer.