Changeset 7800335


Ignore:
Timestamp:
Sep 16, 2016, 6:33:17 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
99d8cbb
Parents:
4b251ae
Message:

wscript: build sphinx documentation if sphinx-build is found in PATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r4b251ae r7800335  
    327327          ctx.to_log('doxygen was not found (ignoring)')
    328328
     329        # check if sphinx-build is installed, optional
     330        try:
     331          ctx.find_program('sphinx-build', var='SPHINX')
     332        except ctx.errors.ConfigurationError:
     333          ctx.to_log('sphinx-build was not found (ignoring)')
     334
    329335def build(bld):
    330336    bld.env['VERSION'] = VERSION
     
    368374                relative_trick = True)
    369375
     376    # build documentation from source files using sphinx-build
     377    if bld.env['SPHINX']:
     378        bld( name = 'sphinx', rule = 'make html',
     379                source = ['doc/conf.py'] + bld.path.ant_glob('doc/**.rst'),
     380                cwd = 'doc')
     381        bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc/sphinx',
     382                bld.path.ant_glob('doc/_build/html/**'),
     383                cwd = bld.path.find_dir ('doc/_build/html'),
     384                relative_trick = True)
     385
    370386def shutdown(bld):
    371387    from waflib import Logs
Note: See TracChangeset for help on using the changeset viewer.