Changeset 249bae9 in sasview
- Timestamp:
- Apr 10, 2009 7:44:26 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/build_sansview.py
r40f9745 r249bae9 11 11 # 12 12 # py2exe must be installed 13 # 14 # mingw must be installed 13 15 # 14 16 # Usage: … … 19 21 # -t: Builds SansView from the trunk. 20 22 # -i: Builds an installer from the release version. 23 # -n: Print out the dependencies for the release notes 21 24 22 25 import os 23 26 import shutil 24 27 25 PYTHON = " c:\python25\python"28 PYTHON = "python" 26 29 SVN = "svn" 27 30 INNO = "\"c:\Program Files\Inno Setup 5\ISCC\"" … … 35 38 PLOTTOOLS = "0.1.3" 36 39 UTIL = "0.1" 40 PARK = "1.2.x" 41 42 SANSMODELS_URL = "svn://danse.us/sans/releases/sansmodels-%s" % SANSMODELS 43 DATALOADER_URL = "svn://danse.us/sans/releases/DataLoader-%s" % DATALOADER 44 GUICOMM_URL = "svn://danse.us/sans/releases/guicomm-%s" % GUICOMM 45 GUIFRAME_URL = "svn://danse.us/sans/releases/guiframe-%s" % GUIFRAME 46 PLOTTOOLS_URL = "svn://danse.us/common/releases/plottools-%s/trunk" % PLOTTOOLS 47 UTIL_URL = "svn://danse.us/common/releases/util-%s" % UTIL 48 SANSVIEW_URL = "svn://danse.us/sans/releases/sansview-%s" % SANSVIEW 49 #TODO: need to use the release branch of PARK once it is created 50 PARK_URL = "svn://danse.us/park/branches/park-1.2" 37 51 38 52 # Installation folder … … 82 96 os.system("%s checkout -q %s" % (SVN, url)) 83 97 os.chdir(setup_dir) 98 os.system("%s setup.py build -cmingw32" % PYTHON) 84 99 os.system("%s setup.py install" % PYTHON) 85 100 … … 92 107 os.chdir(wd) 93 108 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) 95 110 else: 96 111 install_pkg(".", "sansmodels/src", "svn://danse.us/sans/trunk/sansmodels") … … 98 113 os.chdir(wd) 99 114 if release: 100 install_pkg(".", "DataLoader-%s" % DATALOADER, "svn://danse.us/sans/releases/DataLoader-%s" % DATALOADER)115 install_pkg(".", "DataLoader-%s" % DATALOADER, DATALOADER_URL) 101 116 else: 102 117 install_pkg(".", "DataLoader", "svn://danse.us/sans/trunk/DataLoader") … … 104 119 os.chdir(wd) 105 120 if release: 106 install_pkg(".", "guicomm-%s" % GUICOMM, "svn://danse.us/sans/releases/guicomm-%s" % GUICOMM)121 install_pkg(".", "guicomm-%s" % GUICOMM, GUICOMM_URL) 107 122 else: 108 123 install_pkg(".", "guicomm", "svn://danse.us/sans/trunk/guicomm") … … 110 125 os.chdir(wd) 111 126 if release: 112 install_pkg(".", "guiframe-%s" % GUIFRAME, "svn://danse.us/sans/releases/guiframe-%s" % GUIFRAME)127 install_pkg(".", "guiframe-%s" % GUIFRAME, GUIFRAME_URL) 113 128 else: 114 129 install_pkg(".", "guiframe", "svn://danse.us/sans/trunk/guiframe") … … 116 131 os.chdir(wd) 117 132 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) 119 134 else: 120 135 install_pkg("plottools", "trunk", "svn://danse.us/common/plottools/trunk") … … 122 137 os.chdir(wd) 123 138 if release: 124 install_pkg(".", "util-%s" % UTIL, "svn://danse.us/common/releases/util-%s" % UTIL)139 install_pkg(".", "util-%s" % UTIL, UTIL_URL) 125 140 else: 126 141 install_pkg(".", "util", "svn://danse.us/common/util") … … 129 144 os.chdir(wd) 130 145 if release: 146 install_pkg(".", "park-1.2", PARK_URL) 147 else: 131 148 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)) 138 153 else: 139 154 os.system("%s checkout svn://danse.us/sans/trunk/sansview" % SVN) … … 165 180 print " -t: Builds SansView from the trunk" 166 181 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 167 192 else: 168 193 # Prepare installation folder
Note: See TracChangeset
for help on using the changeset viewer.