Changeset b9fc674 in sasview for sasview/setup_exe.py


Ignore:
Timestamp:
Feb 18, 2015 5:21:55 AM (9 years ago)
Author:
Peter Parker
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:
25ab07c
Parents:
66b63ee
Message:

Make sure documentation is included in installer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasview/setup_exe.py

    r66b63ee rb9fc674  
    292292    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 
Note: See TracChangeset for help on using the changeset viewer.