Changeset 138ac69 in sasview


Ignore:
Timestamp:
May 13, 2009 7:38:25 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:
7f7e5f1
Parents:
dad49a0
Message:

sansview: modify build script to default to simple checkout of the release version on non-windows platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/build_sansview.py

    r531a811c r138ac69  
    2424 
    2525import os 
     26import sys 
    2627import shutil 
    2728import logging 
     
    3839 
    3940CWD    = 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. 
     44if sys.platform == 'win32': 
     45    PYTHON = "c:\python25\python" 
     46else: 
     47    PYTHON = 'python' 
     48 
    4149SVN    = "svn" 
    4250INNO   = "\"c:\Program Files\Inno Setup 5\ISCC\"" 
     
    218226         
    219227if __name__ == "__main__":  
    220     import sys 
    221      
    222228    print "Build script for SansView %s" % SANSVIEW 
    223229     
     
    240246            print "    -r: Builds a SansView using the released modules" 
    241247            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]"         
    243249            print "    -n: Print out the dependencies for the release notes" 
    244250        elif sys.argv[1]=="-n": 
     
    268274                logging.info("Building release version") 
    269275                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.