Changeset 697d798 in sasview


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

prview: fixed problem with build script

Location:
prview
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • prview/setup_exe.py

    r43db4a8 r697d798  
    1515 
    1616import 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. 
     22try: 
     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') 
     29except: 
     30    print "Error processing extra python path needed to build SansView\n  %s" % sys.exc_value 
     31 
    1732from distutils.core import setup 
    1833from distutils.filelist import findall 
  • 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.