Changeset ceb89ac in sasview
- Timestamp:
- Jul 4, 2009 5:26:14 PM (15 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:
- e7b1ccf
- Parents:
- 96c430d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/build_prview.py
r96c430d rceb89ac 15 15 # 16 16 # Usage: 17 # python build_ sansview [command]17 # python build_prview [command] 18 18 # [command] can be any of the following: 19 19 # -h: lists the command line options 20 # -r: Builds a SansView using the released modules.21 # -t: Builds SansView from the trunk.20 # -r: Builds a PrView using the released modules. 21 # -t: Builds PrView from the trunk. 22 22 # -i: Builds an installer from the release version. 23 23 # -n: Print out the dependencies for the release notes … … 167 167 os.system("%s checkout -q svn://danse.us/sans/trunk/prview" % SVN) 168 168 169 def prepare(wipeout = False ):169 def prepare(wipeout = False, install_folder=INSTALL_FOLDER): 170 170 """ 171 171 Prepare the build … … 187 187 188 188 # Create a fresh installation folder 189 if os.path.isdir( INSTALL_FOLDER):190 shutil.rmtree( INSTALL_FOLDER)191 192 os.mkdir( INSTALL_FOLDER)189 if os.path.isdir(install_folder): 190 shutil.rmtree(install_folder) 191 192 os.mkdir(install_folder) 193 193 194 194 # Check that the dependencies are properly installed … … 196 196 197 197 # Move to the installation folder 198 os.chdir( INSTALL_FOLDER)198 os.chdir(install_folder) 199 199 200 200 def warning(): … … 218 218 print "Build script for PrView %s" % PRVIEW 219 219 220 #TODO: add --prefix option 221 220 222 if len(sys.argv)==1: 221 # If there is no argument, build the installer 222 sys.argv.append("-i") 223 224 if len(sys.argv)>1: 223 # By default, build release version in site-packages without cleanup 224 logging.info("Building release version") 225 prepare(install_folder="prview") 226 checkout(True) 227 228 elif len(sys.argv)>1: 225 229 # Help 226 230 if sys.argv[1]=="-h":
Note: See TracChangeset
for help on using the changeset viewer.