[buildout]
versions = versions
extends =
  ../../component/msgpack-python/buildout.cfg
  ../../component/msgpack-numpy/buildout.cfg
  ../../component/scipy/buildout.cfg
  ../../software/erp5/software.cfg
parts +=
  wendelin
  scipy
  msgpack-python
  msgpack-numpy
  ipython
  jupyter
  jupyter-notebook-initialized-scripts

[eggs]
initialization =
  import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning
extra-paths +=
  ${wendelin:location}
eggs +=
  astor
  ${scipy:egg}
  ${msgpack-python:egg}
  ${msgpack-numpy:egg}
  ${ipython:egg}
  
[generic_testrunner_init]
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 =
  # 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 os
  if not os.getenv('LD_PRELOAD'):
    os.environ['LD_PRELOAD'] = %r
    os.execve(os.path.realpath(__file__), sys.argv, os.environ)

[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}
  
[testrunner]
# we need to override the test suite runner to add our custom libstdc++ dynamic
# library to the path
initialization +=
  ${generic_testrunner_init:initialization}
 
[erp5_repository_list]
repository_id_list += wendelin

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

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

[wendelin]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
repository = https://lab.nexedi.com/nexedi/wendelin.git
branch = master

[versions]
msgpack-numpy = 0.4.4.3


# Test Suite: Wendelin.UnitTest-Master ran at 2023/11/17 19:39:52.090471 UTC
#             0 failures, 0 errors, 67 total, status: PASS

[slapos]
revision = cbc3929c6aadb26528206b1dfddf0de974de3589


[erp5]
revision = 4e48b8b68da589f326fa9575f3414c99e2fbf8d2


[wendelin]
revision = bfe4ea1d40f20c0a821b78e1c5720d00878e9a96


[wendelin.core]
revision = 885b3556e0184f8639d787ec0b8c925b4b479090


[erp5-bin]
revision = 13d3ed05f0f07a53786fdf1ec0855a94ba1acdfc


[erp5-doc]
revision = 3996ae1f832ca438ead9fbcf0ab8082dd1d22021