software.cfg 2.05 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 20

[eggs]
initialization =
21
  import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning
22 23 24
extra-paths +=
  ${wendelin:location}
eggs +=
25
  astor
26 27
  ${scipy:egg}
  ${msgpack-python:egg}
28
  ${msgpack-numpy:egg}
29 30
  ${wendelin.core:egg}
  ${ipython:egg}
31 32
  
[generic_testrunner_init]
33 34 35 36 37 38 39 40
recipe = slapos.recipe.build
init =
  import struct
  gcc = self.buildout['gcc']
  options['initialization'] %= (
    gcc['prefix'] + '/lib%s/libstdc++.so' % (8 * struct.calcsize("P"))
    ) if 'part' in gcc else ''
initialization =
41 42 43 44
  # 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.
45 46 47 48 49
  import os
  if not os.getenv('LD_PRELOAD'):
    os.environ['LD_PRELOAD'] = %r
    os.execve(os.path.realpath(__file__), sys.argv, os.environ)

50
[test_suite_runner]
51 52
# we need to override the test suite runner to add our custom libstdc++ dynamic
# library to the path
53
initialization +=
54 55
  ${generic_testrunner_init:initialization}
  
56
[testrunner]
57 58
# we need to override the test suite runner to add our custom libstdc++ dynamic
# library to the path
59
initialization +=
60 61
  ${generic_testrunner_init:initialization}
 
62
[erp5_repository_list]
63
repository_id_list += wendelin
64 65

[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]
Ivan Tyagov's avatar
Ivan Tyagov committed
79
msgpack-numpy = 0.4.4.3
80
wendelin.core = 0.13