Repository navigation
Expand file tree
/
Copy pathwscript
More file actions
67 lines (54 loc) · 2.16 KB
/
Copy pathwscript
File metadata and controls
67 lines (54 loc) · 2.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from os.path import join
from waflib import Utils
from waflib.extras.test_base import summary
from waflib.extras.symwaf2ic import get_toplevel_path
def depends(dep):
dep('code-format')
def options(opt):
opt.load("shelltest")
opt.load('pytest')
opt.load('pylint')
opt.load('pycodestyle')
def configure(cfg):
cfg.load("shelltest")
cfg.load('python')
cfg.load('pytest')
cfg.load('pylint')
cfg.load('pycodestyle')
def build(bld):
bld.install_files("${PREFIX}/bin",
bld.path.ant_glob("src/shell/**/*"),
chmod=Utils.O755,
name="tools-slurm_shellscripts")
bld(name="tools-slurm_shellscripts_tests",
tests=bld.path.ant_glob("tests/shell/**/*"),
features="use shelltest",
use="tools-slurm_shellscripts",
test_environ=dict(WAF_TOPLEVEL=get_toplevel_path()))
bld(name="tools-slurm_python_lib",
features="use py pylint pycodestyle",
source=bld.path.ant_glob("src/py/tools_slurm/**/*.py"),
pylint_config=join(get_toplevel_path(), "code-format", "pylintrc"),
pycodestyle_config=join(get_toplevel_path(), "code-format", "pycodestyle"),
relative_trick=True,
install_from="src/py",
)
bld(name='tools-slurm_pythonscripts',
features='use py pylint pycodestyle',
use='tools-slurm_python_lib',
source=bld.path.ant_glob('src/py/tools_slurm/scripts/**/*.py'),
relative_trick=True,
install_from='src/py/tools_slurm/scripts',
install_path='${PREFIX}/bin',
chmod=Utils.O755,
pylint_config=join(get_toplevel_path(), "code-format", "pylintrc"),
pycodestyle_config=join(get_toplevel_path(), "code-format", "pycodestyle"),
)
bld(name="tools-slurm_pythonscripts_tests",
tests=bld.path.ant_glob("tests/py/**/*.py"),
features='use pytest pylint pycodestyle',
use="tools-slurm_python_lib tools-slurm_pythonscripts",
pylint_config=join(get_toplevel_path(), "code-format", "pylintrc"),
pycodestyle_config=join(get_toplevel_path(), "code-format", "pycodestyle"),
)
bld.add_post_fun(summary)