Commit 0a06361e authored by Baptiste Esteban's avatar Baptiste Esteban
Browse files

Make pybind11 a build requirement for the CI

parent eabd7525
Pipeline #26826 passed with stage
in 17 minutes and 36 seconds
......@@ -37,16 +37,15 @@ class Pylene(ConanFile):
# Disable python packaging until cmake_find_package generator for pybind11 does not work
def _build_python(self):
return (self.options.shared or self.options.fPIC or tools.os_info.is_windows) and False
return self.options.shared or self.options.fPIC or tools.os_info.is_windows
def configure(self):
tools.check_min_cppstd(self, "20")
if self.options.shared:
del self.options.fPIC
if self._build_python():
def build(self):
cmake = CMake(self)
......@@ -78,7 +77,7 @@ class Pylene(ConanFile):
self.cpp_info.components["Pylene-numpy"].names["cmake_find_pakage_multi"] = "Pylene-numpy"
self.cpp_info.components["Pylene-numpy"].names["cmake_find_pakage"] = "Pylene-numpy"
self.cpp_info.components["Pylene-numpy"].libs = ["Pylene-numpy"]
self.cpp_info.components["Pylene-numpy"].requires = ["Pylene", "pybind11::pybind11"]
self.cpp_info.components["Pylene-numpy"].requires = ["Pylene"]
self.cpp_info.components["Pylene-numpy"].includedirs = [os.path.join(self.package_folder, "include")]
v = tools.Version(self.settings.compiler.version)
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