Changeset 115eb7e in sasview for setup.py


Ignore:
Timestamp:
Apr 10, 2017 9:49:59 AM (7 years ago)
Author:
ajj
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6c7e4cc1
Parents:
d26f025
Message:

Added warnings to build_sphix about missing directories.

Initial work to run sasmodels build from sasview setup.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rf3bf622 r115eb7e  
    152152 
    153153    def run(self): 
     154        ''' First builds the sasmodels documentation if the directory 
     155        is present. Then builds the sasview docs. 
     156        ''' 
     157        ### AJJ - Add code for building sasmodels docs here: 
     158        # check for doc path 
     159        SASMODELS_PATH = '../sasmodels' 
     160        if os.path.exists(SASMODELS_PATH): 
     161            if os.path.isdir(SASMODELS_PATH): 
     162                # if available, build sasmodels docs 
     163            else: 
     164                # if not available warning message 
     165                print "WARNING!! sasmodels directory not found. Cannot build model docs." 
     166 
     167        #Now build sasview (+sasmodels) docs 
    154168        sys.path.append("docs/sphinx-docs") 
    155169        import build_sphinx 
Note: See TracChangeset for help on using the changeset viewer.