Commit 70fbfae2 authored by francois's avatar francois

Software/wendelin Add kernel version check

This commit prevent wendelin to be built if the kernel version is
inferior to 3.16, as wendelin array fail on older kernels.
parent 2aa13735
......@@ -5,6 +5,7 @@ extends =
../../component/msgpack-python/buildout.cfg
../../component/scipy/buildout.cfg
../../software/erp5/software.cfg
parts +=
wendelin
scipy
......@@ -15,6 +16,16 @@ parts +=
wendelin_test_suite_runner
wendelin_testrunner
[kernel-version]
recipe = slapos.recipe.build
script =
import platform, re
from distutils.version import LooseVersion
to_find = re.compile(r"^\d+\.\d+\.\d+")
kernel_version = to_find.match(platform.release())
if LooseVersion(kernel_version.group()) < LooseVersion("3.16.0"):
raise zc.buildout.UserError("Wendelin needs linux kernel 3.16 or newer")
[eggs]
initialization =
import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning
......
......@@ -66,6 +66,7 @@ extends =
# keep neoppod extends last
parts +=
kernel-version
erp5-util-develop
slapos-cookbook-develop
slapos-cookbook
......@@ -149,6 +150,10 @@ extra-ldflags = -Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64
[instance-jupyter]
rendered = ${buildout:directory}/template-jupyter.cfg
[kernel-version]
recipe = slapos.recipe.build
script =
[download-base]
<= download-base-neo
url = ${:_profile_base_location_}/${:filename}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment