Changeset 697d798 in sasview for prview/setup_mac.py


Ignore:
Timestamp:
Jun 28, 2010 5:40:39 PM (14 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:
38eee13
Parents:
480ddb4
Message:

prview: fixed problem with build script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/setup_mac.py

    r731406c r697d798  
    33""" 
    44from setuptools import setup 
     5import DataLoader.readers  
     6import os 
     7 
     8#Data reader data files 
     9 
     10RESOURCES_FILES = os.path.join(DataLoader.readers.get_data_path(),'defaults.xml') 
     11 
     12# Locate libxml2 library 
     13lib_locs = ['/usr/local/lib', '/usr/lib'] 
     14libxml_path = None 
     15for item in lib_locs: 
     16    libxml_path_test = '%s/libxml2.dylib' % item 
     17    if os.path.isfile(libxml_path_test):  
     18        libxml_path = libxml_path_test 
     19if libxml_path == None: 
     20    raise RuntimeError, "Could not find libxml2 on the system" 
    521 
    622APP = ['PrView.py'] 
    7 DATA_FILES = ['images', 'test'] 
     23DATA_FILES = ['images', 'test', 'plugins'] 
    824OPTIONS = {'argv_emulation': True, 
    9            #'plist': dict(LSPrefersPPC=True) 
     25           'packages': ['lxml'], 
     26           'iconfile': 'images/ball.icns', 
     27           'frameworks':[libxml_path], 
     28           'resources': RESOURCES_FILES 
    1029           } 
    1130 
     
    1332    app=APP, 
    1433    data_files=DATA_FILES, 
     34    include_package_data= True, 
    1535    options={'py2app': OPTIONS}, 
    1636    setup_requires=['py2app'], 
Note: See TracChangeset for help on using the changeset viewer.