Changeset 138ac69 in sasview
- Timestamp:
- May 13, 2009 7:38:25 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:
- 7f7e5f1
- Parents:
- dad49a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/build_sansview.py
r531a811c r138ac69 24 24 25 25 import os 26 import sys 26 27 import shutil 27 28 import logging … … 38 39 39 40 CWD = os.getcwd() 40 PYTHON = "c:\python25\python" 41 42 # On Windows, the python executable is not always on the path. 43 # Use its most frequent location as the default. 44 if sys.platform == 'win32': 45 PYTHON = "c:\python25\python" 46 else: 47 PYTHON = 'python' 48 41 49 SVN = "svn" 42 50 INNO = "\"c:\Program Files\Inno Setup 5\ISCC\"" … … 218 226 219 227 if __name__ == "__main__": 220 import sys221 222 228 print "Build script for SansView %s" % SANSVIEW 223 229 … … 240 246 print " -r: Builds a SansView using the released modules" 241 247 print " -t: Builds SansView from the trunk" 242 print " -i: Builds an installer from the release version "248 print " -i: Builds an installer from the release version [Windows only]" 243 249 print " -n: Print out the dependencies for the release notes" 244 250 elif sys.argv[1]=="-n": … … 268 274 logging.info("Building release version") 269 275 checkout(True) 270 logging.info("Building installer from release version") 271 os.chdir("sansview-%s" % (SANSVIEW)) 272 os.system("%s setup_exe.py -q py2exe" % PYTHON) 273 os.system("%s/Q installer.iss" % INNO) 274 shutil.copy2(os.path.join("Output","setupSansView.exe"), 275 os.path.join(CWD, "setupSansView_%s.exe" % str(timestamp))) 276 277 276 if sys.platform=='win32': 277 logging.info("Building installer from release version") 278 os.chdir("sansview-%s" % (SANSVIEW)) 279 os.system("%s setup_exe.py -q py2exe" % PYTHON) 280 os.system("%s/Q installer.iss" % INNO) 281 shutil.copy2(os.path.join("Output","setupSansView.exe"), 282 os.path.join(CWD, "setupSansView_%s.exe" % str(timestamp))) 283 284
Note: See TracChangeset
for help on using the changeset viewer.