Changeset 67ffb10 in sasview for sansview


Ignore:
Timestamp:
May 3, 2010 4:18:00 PM (15 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:
051e22f
Parents:
ee370db
Message:

sansview: update mac build script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/setup_mac.py

    r46e7e82 r67ffb10  
    2626RESOURCES_FILES.append(os.path.join(DataLoader.readers.get_data_path(),'defaults.xml')) 
    2727 
     28# Locate libxml2 library 
     29lib_locs = ['/usr/local/lib', '/usr/lib'] 
     30libxml_path = None 
     31for item in lib_locs: 
     32    libxml_path = '%s/libxml2.dylib' % item 
     33    if os.path.isfile(libxml_path):  
     34        break 
     35if libxml_path == None: 
     36    raise RuntimeError, "Could not find libxml2 on the system" 
     37 
    2838APP = ['sansview.py'] 
    2939DATA_FILES += ['images','test','plugins','media'] 
     
    3141           'packages': ['lxml','periodictable'], 
    3242           'iconfile': 'images/ball.icns', 
    33            'frameworks':['/usr/local/lib/libxml2.2.dylib'], ##This dir path could be /usr/lib/yourlibxmlfile depending on the system. 
     43           'frameworks':[libxml_path], 
    3444           'resources': RESOURCES_FILES 
    3545           } 
Note: See TracChangeset for help on using the changeset viewer.