Message ID | 20190224130638.31848-18-noaos@mellanox.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | Pyverbs additions | expand |
diff --git a/buildlib/Findcython.cmake b/buildlib/Findcython.cmake index 0bcc862b7b8a..ac1610c47f6d 100644 --- a/buildlib/Findcython.cmake +++ b/buildlib/Findcython.cmake @@ -18,6 +18,14 @@ if(NOT _VERSION_RESULT) from Cython.Compiler.Main import main main(command_line = 1)") execute_process(COMMAND "chmod" "a+x" "${CYTHON_EXECUTABLE}") + + # Dockers with older Cython versions fail to build pyverbs. Until we get to + # the bottom of this, disable pyverbs for older Cython versions. + if (CYTHON_VERSION_STRING VERSION_LESS "0.25") + message("Cython version < 0.25, disabling") + unset(CYTHON_EXECUTABLE) + endif() + endif() unset(_VERSION_RESULT) unset(_VERSION)
Dockers with older Cython versions fail to build pyverbs. Until we get to the bottom of this, disable pyverbs for older Cython versions. Signed-off-by: Noa Osherovich <noaos@mellanox.com> --- buildlib/Findcython.cmake | 8 ++++++++ 1 file changed, 8 insertions(+)