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 = ...@@ -5,6 +5,7 @@ extends =
../../component/msgpack-python/buildout.cfg ../../component/msgpack-python/buildout.cfg
../../component/scipy/buildout.cfg ../../component/scipy/buildout.cfg
../../software/erp5/software.cfg ../../software/erp5/software.cfg
parts += parts +=
wendelin wendelin
scipy scipy
...@@ -15,6 +16,16 @@ parts += ...@@ -15,6 +16,16 @@ parts +=
wendelin_test_suite_runner wendelin_test_suite_runner
wendelin_testrunner 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] [eggs]
initialization = initialization =
import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning import scipy.spatial.ckdtree # load our own libstdc++ explicitly at the very beginning
......
...@@ -66,6 +66,7 @@ extends = ...@@ -66,6 +66,7 @@ extends =
# keep neoppod extends last # keep neoppod extends last
parts += parts +=
kernel-version
erp5-util-develop erp5-util-develop
slapos-cookbook-develop slapos-cookbook-develop
slapos-cookbook slapos-cookbook
...@@ -149,6 +150,10 @@ extra-ldflags = -Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64 ...@@ -149,6 +150,10 @@ extra-ldflags = -Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64
[instance-jupyter] [instance-jupyter]
rendered = ${buildout:directory}/template-jupyter.cfg rendered = ${buildout:directory}/template-jupyter.cfg
[kernel-version]
recipe = slapos.recipe.build
script =
[download-base] [download-base]
<= download-base-neo <= download-base-neo
url = ${:_profile_base_location_}/${:filename} 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