buildout.cfg 1.42 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
[buildout]
Philip ABBET's avatar
Philip ABBET committed
2
3
index = https://pypi.org/simple
parts = scripts cpulimit cxx_integers_echo_algorithm
André Anjos's avatar
André Anjos committed
4
5
6
7
8
9
10
11
12
13
extensions = mr.developer
auto-checkout = *
develop = .
newest = false
eggs = beat.core
       beat.backend.python
       ipdb
       coverage

[sources]
14
beat.backend.python = git https://gitlab.idiap.ch/beat/beat.backend.python
André Anjos's avatar
André Anjos committed
15
16
cpulimit = git https://github.com/opsengine/cpulimit rev=v0.2 egg=false

17
18
[cpulimit]
recipe = collective.recipe.cmd
19
cmds = make -C src/cpulimit
20
       cd bin && ln -sf ../src/cpulimit/src/cpulimit && cd ..
21
22
23
24
uninstall_cmds = rm -f bin/cpulimit
on_install = true
on_update = true

André Anjos's avatar
André Anjos committed
25
26
[scripts]
recipe = bob.buildout:scripts
Philip ABBET's avatar
Philip ABBET committed
27
28
29
30
31

[cxx_integers_echo_algorithm]
recipe = collective.recipe.cmd
cmds = cd beat/core/test/prefix/algorithms/user/
       tar -cf cxx_integers_echo.tar cxx_integers_echo/
32
       docker run -dti --name build beats/cxx_dev:0.1.5 > /dev/null
Philip ABBET's avatar
Philip ABBET committed
33
34
35
36
37
38
39
40
41
42
43
       docker cp cxx_integers_echo.tar build:/tmp/cxx_integers_echo.tar
       docker exec build bash -c 'cd /tmp ; tar -xf /tmp/cxx_integers_echo.tar'
       docker exec build bash -c 'cd /tmp/cxx_integers_echo ; mkdir build ; cd build ; cmake .. ; make'
       docker cp build:/tmp/cxx_integers_echo/1.so cxx_integers_echo/.
       docker stop build > /dev/null
       docker rm build > /dev/null
       rm cxx_integers_echo.tar
       cd ../../../../../..
uninstall_cmds = rm -f beat/core/test/prefix/algorithms/user/cxx_integers_echo/1.so
on_install = true
on_update = true