software.cfg 2.13 KB
Newer Older
1
[buildout]
Ivan Tyagov's avatar
Ivan Tyagov committed
2
versions = versions
3 4 5
extends =
  ../../component/wendelin.core/buildout.cfg
  ../../component/msgpack-python/buildout.cfg
6
  ../../component/msgpack-numpy/buildout.cfg
7
  ../../component/scipy/buildout.cfg
8
  ../../software/erp5/software.cfg
9 10 11 12
parts +=
  wendelin
  scipy
  msgpack-python
13
  msgpack-numpy
14 15
  ipython
  wendelin.core
16
  jupyter
17
  jupyter-notebook-initialized-scripts
18 19
  wendelin_test_suite_runner
  wendelin_testrunner
20 21 22

[eggs]
initialization =
23
  import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning
24 25 26
extra-paths +=
  ${wendelin:location}
eggs +=
27
  astor
28 29
  ${scipy:egg}
  ${msgpack-python:egg}
30
  ${msgpack-numpy:egg}
31 32
  ${wendelin.core:egg}
  ${ipython:egg}
33 34 35 36 37 38 39 40 41 42
  
[generic_testrunner_init]
initialization = 
  # The 4 lines below will replace the process with another one, with the proper
  # LD_PRELOAD environment variable. This is necessary because LD_PRELOAD is only
  # taken into account when the process starts. Modifying it in runtime doesn't
  # work.
  import struct, os
  arch = 8 * struct.calcsize("P")
  rerun = not os.getenv('LD_PRELOAD')
43
  if rerun: os.environ['LD_PRELOAD'] = '''${gcc:location}/lib%s/libstdc++.so''' % arch
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
  if rerun: os.execve(os.path.realpath(__file__), sys.argv, os.environ)
  
[wendelin_test_suite_runner]
<= test_suite_runner
# we need to override the test suite runner to add our custom libstdc++ dynamic
# library to the path
initialization =
  ${generic_testrunner_init:initialization}
  ${test_suite_runner:initialization}
  
[wendelin_testrunner]
<= testrunner
# we need to override the test suite runner to add our custom libstdc++ dynamic
# library to the path
initialization =
  ${generic_testrunner_init:initialization}
  ${testrunner:initialization}
 
62 63 64 65
[erp5_repository_list]
repository_id_list += wendelin

[local-bt5-repository]
66
list += ${wendelin:location}/bt5
67

68 69 70 71
# Jupyter is by default enabled in Wendelin
[erp5-defaults]
jupyter-enable-default = true

72
[wendelin]
73 74
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
75
repository = https://lab.nexedi.com/nexedi/wendelin.git
76
branch = master
Ivan Tyagov's avatar
Ivan Tyagov committed
77 78

[versions]
79 80
msgpack = 0.5.6
msgpack-numpy = 0.4.4.2
81
wendelin.core = 0.12