Changeset 697d798 in sasview
- Timestamp:
- Jun 28, 2010 5:40:39 PM (15 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
- Location:
- prview
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/setup_exe.py
r43db4a8 r697d798 15 15 16 16 import os, sys 17 18 # When using the SansView build script, we need to be able to pass 19 # an extra path to be added to the python path. The extra arguments 20 # should be removed from the list so that the setup processing doesn't 21 # fail. 22 try: 23 if sys.argv.count('--extrapath'): 24 path_flag_idx = sys.argv.index('--extrapath') 25 extra_path = sys.argv[path_flag_idx+1] 26 sys.path.insert(0, extra_path) 27 del sys.argv[path_flag_idx+1] 28 sys.argv.remove('--extrapath') 29 except: 30 print "Error processing extra python path needed to build SansView\n %s" % sys.exc_value 31 17 32 from distutils.core import setup 18 33 from distutils.filelist import findall -
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.