Changes in sasview/setup_mac.py [018582f:49cd712] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_mac.py

    r018582f r49cd712  
    116116                                   CFBundleTypeRole="Shell" )],) 
    117117 
     118#Get version - NB nasty hack. Need to find correct way to give path to installed sasview (AJJ) 
     119import __init__ as sasviewver 
     120 
     121VERSION = sasviewver.__version__ 
     122APPNAME = "SasView "+VERSION 
     123DMGNAME = "SasView-"+VERSION 
     124 
    118125APP = ['sasview.py'] 
    119126DATA_FILES += ['images','test','media'] 
     
    133140           } 
    134141setup( 
    135     name="sasview", 
     142    name=APPNAME, 
    136143    app=APP, 
    137144    data_files=DATA_FILES, 
     
    140147    setup_requires=['py2app'], 
    141148) 
     149 
     150#Build dmg 
     151DMG="dist/%s.dmg"%DMGNAME 
     152if os.path.exists(DMG): os.unlink(DMG) 
     153os.system('cd dist && ../../build_tools/dmgpack.sh "%s" "%s.app"'%(DMGNAME,APPNAME)) 
     154os.system('chmod a+r "%s"'%DMG) 
     155 
Note: See TracChangeset for help on using the changeset viewer.