-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
37 lines (27 loc) · 932 Bytes
/
wscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import os
from waflib.extras.test_base import summary
def depends(dep):
pass
def options(opt):
opt.load("test_base")
def configure(conf):
conf.load("test_base")
def build(bld):
srcdir = bld.path.find_dir('.').get_src()
blddir = bld.path.find_dir('.').get_bld()
testdir = blddir.find_or_declare('test')
sphinxbuild = "python -m sphinx"
# Build jupyter
bld(name='doc-brainscales1-demos-jupyter',
rule=f'{sphinxbuild} -M jupyter {srcdir} {blddir}/jupyter',
always=True)
# Build HTML
bld(name='doc-brainscales1-demos-html',
rule=f'{sphinxbuild} -M html {srcdir} {blddir}/html -W',
always=True)
# Patch ebrains kernel
bld(name = 'patch_kernel',
rule = f'for fn in {blddir}/jupyter/jupyter/*.ipynb; do patch $fn {srcdir}/ebrains_kernel.patch; done',
after=["doc-brainscales1-demos-jupyter"],
)
bld.add_post_fun(summary)