Changes in sasview/setup_exe.py [61c93b3:42811b8] in sasview


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_exe.py

    r61c93b3 r42811b8  
    280280# Copying the images directory to the distribution directory. 
    281281for f in findall(images_dir): 
    282     if os.path.split(f)[0].count('.svn')==0: 
     282    if not ".svn" in f: 
    283283        data_files.append(("images", [f])) 
    284284 
    285285# Copying the HTML help docs 
    286286for f in findall(media_dir): 
    287     if os.path.split(f)[0].count('.svn')==0: 
     287    if not ".svn" in f: 
    288288        data_files.append(("media", [f])) 
    289289 
    290290# Copying the sample data user data 
    291291for f in findall(test_dir): 
    292     if os.path.split(f)[0].count('.svn')==0: 
     292    if not ".svn" in f: 
    293293        data_files.append(("test", [f])) 
    294          
     294 
     295# See if the documentation has been built, and if so include it. 
     296doc_path = os.path.join(build_path, "doc") 
     297if os.path.exists(doc_path): 
     298    for dirpath, dirnames, filenames in os.walk(doc_path): 
     299        for filename in filenames: 
     300            sub_dir = os.path.join("doc", os.path.relpath(dirpath, doc_path)) 
     301            data_files.append((sub_dir, [os.path.join(dirpath, filename)])) 
     302else: 
     303    raise Exception("You must first build the documentation before creating an installer.") 
     304 
    295305if py26MSdll != None: 
    296306    # install the MSVC 9 runtime dll's into the application folder 
     
    323333    ]) 
    324334#packages.append('IPython') 
    325 includes = ['site'] 
     335includes = ['site','lxml._elementpath', 'lxml.etree'] 
    326336 
    327337# Exclude packages that are not needed but are often found on build systems 
Note: See TracChangeset for help on using the changeset viewer.