Changeset 6c7e4cc in sasview for setup.py


Ignore:
Timestamp:
Apr 10, 2017 11:21:16 AM (8 months ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_CategroyManager, ESS_GUI_Pr, ESS_GUI_corf, ESS_GUI_py2_OLD, SVCC-1, costrafo411, docs, ticket-1032-sldi, ticket-776-orientation, ticket-873, ticket-976, ticket1007, true, unittest-saveload
Children:
f4d571b
Parents:
115eb7e
Message:

Updating setup.py to call sasmodels doc build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r115eb7e r6c7e4cc  
    55import sys 
    66import os 
     7import subprocess 
    78import shutil 
    89from setuptools import setup, Extension 
     
    157158        ### AJJ - Add code for building sasmodels docs here: 
    158159        # check for doc path 
    159         SASMODELS_PATH = '../sasmodels' 
    160         if os.path.exists(SASMODELS_PATH): 
    161             if os.path.isdir(SASMODELS_PATH): 
     160        SASMODELS_DOCPATH = os.path.abspath(os.path.join(os.getcwd(),'..','sasmodels','doc')) 
     161        print "========= check for sasmodels at "+SASMODELS_DOCPATH+"============" 
     162        if os.path.exists(SASMODELS_DOCPATH): 
     163            if os.path.isdir(SASMODELS_DOCPATH): 
    162164                # if available, build sasmodels docs 
    163             else: 
    164                 # if not available warning message 
    165                 print "WARNING!! sasmodels directory not found. Cannot build model docs." 
     165                print "============= Building sasmodels model documentation ===============" 
     166                smdocbuild = subprocess.call(["make","-C",SASMODELS_DOCPATH,"html"]) 
     167        else: 
     168            # if not available warning message 
     169            print " == !!WARNING!! sasmodels directory not found. Cannot build model docs. ==" 
    166170 
    167171        #Now build sasview (+sasmodels) docs 
Note: See TracChangeset for help on using the changeset viewer.