Changeset 6c7e4cc1 in sasview


Ignore:
Timestamp:
Apr 10, 2017 11:21:16 AM (8 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:
f4d571b
Parents:
115eb7e
Message:

Updating setup.py to call sasmodels doc build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r115eb7e r6c7e4cc1  
    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.