Changeset 531a811c in sasview


Ignore:
Timestamp:
May 2, 2009 3:03:20 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:
12dbb14d
Parents:
aecab01
Message:

sansview: added warning to build script (which is meant for production/non-dev machine for building)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/build_sansview.py

    rb4390744 r531a811c  
    4242INNO   = "\"c:\Program Files\Inno Setup 5\ISCC\"" 
    4343 
    44 # Release version 0.9.0 
     44# Release version 0.9.1 
    4545SANSMODELS = "0.4.4" 
    4646DATALOADER = "0.2.3" 
     
    199199    os.chdir(INSTALL_FOLDER)     
    200200 
     201def warning(): 
     202    """ 
     203        The build script will wipe out part of the site-packages. 
     204        Ask the user whether he wants to proceed. 
     205    """ 
     206    print "WARNING!n" 
     207    print "In order to build a clean version of SansView, this script" 
     208    print "deletes anything found under site-packages for the following" 
     209    print "modules:" 
     210    print "   - danse" 
     211    print "   - data_util" 
     212    print "   - DataLoader" 
     213    print "   - park" 
     214    print "   - sans" 
     215    print "   - sans_extension\n" 
     216    answer = raw_input("Are you sure you want to proceed? [Y|N]") 
     217    return answer.upper()=="Y" 
     218         
    201219if __name__ == "__main__":  
    202220    import sys 
    203221     
    204222    print "Build script for SansView %s" % SANSVIEW 
     223     
     224    # Make sure the user really wants to proceed 
     225    if not warning(): 
     226        print "Execution canceled"  
     227        sys.exit() 
    205228     
    206229    if len(sys.argv)==1: 
Note: See TracChangeset for help on using the changeset viewer.