Changes in / [4e080980:c4a7660] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_exe.py

    r2eeca83 rc971c98  
    1414# See for example the 'images' directory below. 
    1515 
    16 import os, sys 
    17 import platform 
     16import os 
     17import sys 
    1818 
    1919# put the build directory at the front of the path 
     
    2222from distutils.util import get_platform 
    2323root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
    24 platform = '%s-%s'%(get_platform(),sys.version[:3]) 
    25 build_path = os.path.join(root, 'build','lib.'+platform) 
     24platform = '%s-%s'%(get_platform(), sys.version[:3]) 
     25build_path = os.path.join(root, 'build', 'lib.'+platform) 
    2626sys.path.insert(0, build_path) 
    2727 
     
    6262    except ImportError: 
    6363        import modulefinder 
    64     import win32com, sys 
     64    import win32com 
    6565    for p in win32com.__path__[1:]: 
    6666        modulefinder.AddPackagePath(win32_folder, p) 
     
    211211    manifest = manifest_for_python25 
    212212    py26MSdll = None 
    213      
     213 
     214 
    214215class Target: 
    215216    def __init__(self, **kw): 
     
    260261# Copy the settings file for the sas.dataloader file extension associations 
    261262import sas.dataloader.readers 
    262 f = os.path.join(sas.dataloader.readers.get_data_path(),'defaults.json') 
     263f = os.path.join(sas.dataloader.readers.get_data_path(), 'defaults.json') 
    263264if os.path.isfile(f): 
    264265    data_files.append(('.', [f])) 
     
    276277     
    277278if os.path.isfile("BUILD_NUMBER"): 
    278     data_files.append(('.',["BUILD_NUMBER"])) 
     279    data_files.append(('.', ["BUILD_NUMBER"])) 
    279280 
    280281# Copying the images directory to the distribution directory. 
     
    303304    raise Exception("You must first build the documentation before creating an installer.") 
    304305 
    305 if py26MSdll != None: 
     306if py26MSdll is not None: 
    306307    # install the MSVC 9 runtime dll's into the application folder 
    307308    data_files.append(("Microsoft.VC90.CRT", py26MSdll)) 
    308 if py26MSdll_x86 != None: 
     309if py26MSdll_x86 is not None: 
    309310    # install the MSVC 9 runtime dll's into the application folder 
    310311    data_files.append(("Microsoft.VC90.CRT", py26MSdll_x86)) 
     
    332333    'reportlab.platypus', 
    333334    ]) 
     335packages.append('periodictable.core') # not found automatically 
    334336#packages.append('IPython') 
    335 includes = ['site','lxml._elementpath', 'lxml.etree'] 
     337includes = ['site', 'lxml._elementpath', 'lxml.etree'] 
    336338 
    337339# Exclude packages that are not needed but are often found on build systems 
     
    357359    script = 'sasview.py', 
    358360    icon_resources = [(1, os.path.join(images_dir, "ball.ico"))], 
    359     other_resources = [(24,1,manifest)], 
     361    other_resources = [(24, 1, manifest)], 
    360362    dest_base = "SasView" 
    361363    ) 
     
    376378        'py2exe': { 
    377379            'dll_excludes': dll_excludes, 
    378             'packages' : packages, 
    379             'includes':includes, 
    380             'excludes':excludes, 
     380            'packages': packages, 
     381            'includes': includes, 
     382            'excludes': excludes, 
    381383            "compressed": 1, 
    382384            "optimize": 0, 
    383             "bundle_files":bundle_option, 
     385            "bundle_files": bundle_option, 
    384386            }, 
    385387    }, 
    386388    data_files=data_files, 
    387      
    388389) 
    389  
    390  
Note: See TracChangeset for help on using the changeset viewer.