Commit eabd7525 authored by Baptiste Esteban's avatar Baptiste Esteban
Browse files

Disable Pylene-numpy packaging

parent 1cab40fb
Pipeline #26824 failed with stage
in 3 minutes and 34 seconds
......@@ -37,8 +37,9 @@ class Pylene(ConanFile):
"xsimd/7.4.6",
]
# 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
return (self.options.shared or self.options.fPIC or tools.os_info.is_windows) and False
def configure(self):
tools.check_min_cppstd(self, "20")
......
......@@ -5,12 +5,14 @@ import sys
class PyleneTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = [ "cmake_find_package", "cmake" ]
# Disable python packaging until cmake_find_package generator for pybind11 does not work
def _build_python(self):
return (self.options["pylene"].shared or self.options["pylene"].fPIC or tools.os_info.is_windows) and False
def build(self):
cmake = CMake(self)
if self.options["pylene"].shared or self.options["pylene"].fPIC or tools.os_info.is_windows:
os.remove(os.path.join(self.build_folder, "Findpybind11.cmake")) # TO REMOVE WHEN cmake_find_package FOR PYBIND11 WORK
if self._build_python():
cmake.definitions["WITH_PYLENE_NUMPY"] = "YES"
cmake.configure()
cmake.build()
......@@ -21,5 +23,5 @@ class PyleneTestConan(ConanFile):
def test(self):
self.run(".{}main".format(os.sep))
if self.options["pylene"].shared or self.options["pylene"].fPIC or tools.os_info.is_windows:
if self._build_python():
self.run("{} main.py".format(sys.executable))
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