Changeset 697d798 in sasview for prview/setup_mac.py
- Timestamp:
- Jun 28, 2010 5:40:39 PM (14 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/setup_mac.py
r731406c r697d798 3 3 """ 4 4 from setuptools import setup 5 import DataLoader.readers 6 import os 7 8 #Data reader data files 9 10 RESOURCES_FILES = os.path.join(DataLoader.readers.get_data_path(),'defaults.xml') 11 12 # Locate libxml2 library 13 lib_locs = ['/usr/local/lib', '/usr/lib'] 14 libxml_path = None 15 for 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 19 if libxml_path == None: 20 raise RuntimeError, "Could not find libxml2 on the system" 5 21 6 22 APP = ['PrView.py'] 7 DATA_FILES = ['images', 'test' ]23 DATA_FILES = ['images', 'test', 'plugins'] 8 24 OPTIONS = {'argv_emulation': True, 9 #'plist': dict(LSPrefersPPC=True) 25 'packages': ['lxml'], 26 'iconfile': 'images/ball.icns', 27 'frameworks':[libxml_path], 28 'resources': RESOURCES_FILES 10 29 } 11 30 … … 13 32 app=APP, 14 33 data_files=DATA_FILES, 34 include_package_data= True, 15 35 options={'py2app': OPTIONS}, 16 36 setup_requires=['py2app'],
Note: See TracChangeset
for help on using the changeset viewer.