Changeset 495acc2 in sasview


Ignore:
Timestamp:
Dec 5, 2011 3:51:36 PM (12 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:
624cd3c3
Parents:
08dcf6c8
Message:

Re #5 fixing installer build on mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/setup_mac.py

    r05da1ad0 r495acc2  
    99   12/01/2011: When seeing an error related to pytz.zoneinfo not being found, change the following line in py2app/recipes/matplotlib.py 
    1010               mf.import_hook('pytz.tzinfo', m, ['UTC']) 
    11    12/05/2011: Generally needs a recent version of macholib, modulegraph, and altgraph (through easy_install) on OSX >= 10.6 
     11   12/05/2011: Needs macholib >= 1.4.3 and py2app >= 0.6.4 to create a 64-bit app 
     12               The ORNL build server uses: 
     13                - setuptools 
     14                - python 2.7 (Apple’s python won’t work) 
     15                - macholib 1.4.3 
     16                - altgraph 0.9 
     17                - modulegraph 0.9.1 
     18                - py2app 0.6.4 
     19                - lxml 2.3.2 
     20                - scipy 0.1.0 
     21                - numpy  1.6.1 
     22                - wx  2.9.2.4 
     23                - PIL 1.1.7 
     24 
    1225""" 
    1326from setuptools import setup 
     
    7285                list.append(ext) 
    7386    except: 
    74         print sys.exc_value 
    75          
     87        pass 
    7688    try: 
    7789        file_type, ext = string.split(local_config.APPLICATION_WLIST, "|*.", 1) 
     
    7991            list.append(ext) 
    8092    except: 
    81         print sys.exc_value 
    82          
     93        pass 
    8394    try: 
    8495        for item in local_config.PLUGINS_WLIST: 
     
    8798                list.append(ext)  
    8899    except: 
    89         print sys.exc_value 
     100        pass 
    90101     
    91102    return list 
     
    104115EXCLUDES = ['PyQt4', 'sip', 'QtGui'] 
    105116 
    106 OPTIONS = {'packages': ['lxml','numpy', 'scipy', 'pytz', 'encodings'], 
     117OPTIONS = {'argv_emulation': True, 
     118           'packages': ['lxml','numpy', 'scipy', 'pytz', 'encodings','matplotlib'], 
    107119           'iconfile': ICON, 
    108120           'frameworks':[libxml_path], 
     
    111123           'excludes' : EXCLUDES, 
    112124           } 
    113  
    114 # Cross-platform applications generally expect sys.argv to 
    115 # be used for opening files. This requires argv_emulation = True 
    116 # ---> argv_emulation is not supported for 64-bit apps 
    117 print platform.architecture()[0] 
    118 if not platform.architecture()[0] == '64bit': 
    119     OPTIONS['argv_emulation'] = 1 
    120 else: 
    121     OPTIONS['argv_emulation'] = 0 
    122      
    123125setup( 
    124126    app=APP, 
Note: See TracChangeset for help on using the changeset viewer.