From 54d24b3e93ba89f01531b2d1a2f805b457c91760 Mon Sep 17 00:00:00 2001 From: Ivan Baidakou Date: Thu, 18 Apr 2024 00:06:37 +0300 Subject: [PATCH 1/3] Optionalize python bindings --- recipes/util-linux-libuuid/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/util-linux-libuuid/all/conanfile.py b/recipes/util-linux-libuuid/all/conanfile.py index 0a90fad2ce052..47b7bb31e7639 100644 --- a/recipes/util-linux-libuuid/all/conanfile.py +++ b/recipes/util-linux-libuuid/all/conanfile.py @@ -23,10 +23,12 @@ class UtilLinuxLibuuidConan(ConanFile): options = { "shared": [True, False], "fPIC": [True, False], + "without_python": [True, False], } default_options = { "shared": False, "fPIC": True, + "without_python": True, } @property @@ -82,6 +84,8 @@ def generate(self): tc = AutotoolsToolchain(self) tc.configure_args.append("--disable-all-programs") tc.configure_args.append("--enable-libuuid") + if self.options.without_python: + tc.configure_args.append("--without-python") if self._has_sys_file_header: tc.extra_defines.append("HAVE_SYS_FILE_H") if "x86" in self.settings.arch: From 86adb84d36b138874d286e91a9846075deaf07ff Mon Sep 17 00:00:00 2001 From: Ivan Baidakou Date: Fri, 19 Apr 2024 19:00:20 +0300 Subject: [PATCH 2/3] Feedback --- recipes/util-linux-libuuid/all/conanfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/util-linux-libuuid/all/conanfile.py b/recipes/util-linux-libuuid/all/conanfile.py index 47b7bb31e7639..077d988a85f4f 100644 --- a/recipes/util-linux-libuuid/all/conanfile.py +++ b/recipes/util-linux-libuuid/all/conanfile.py @@ -23,12 +23,12 @@ class UtilLinuxLibuuidConan(ConanFile): options = { "shared": [True, False], "fPIC": [True, False], - "without_python": [True, False], + "with_python_bindings": [True, False], } default_options = { "shared": False, "fPIC": True, - "without_python": True, + "with_python_bindings": False, } @property @@ -84,7 +84,7 @@ def generate(self): tc = AutotoolsToolchain(self) tc.configure_args.append("--disable-all-programs") tc.configure_args.append("--enable-libuuid") - if self.options.without_python: + if not self.options.with_python_bindings: tc.configure_args.append("--without-python") if self._has_sys_file_header: tc.extra_defines.append("HAVE_SYS_FILE_H") From a8986a7bff99a1020fb229dae1c08027f83b72d5 Mon Sep 17 00:00:00 2001 From: Ivan Baidakou Date: Thu, 24 Oct 2024 12:16:00 +0300 Subject: [PATCH 3/3] Update recipes/util-linux-libuuid/all/conanfile.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Abril Rincón Blanco --- recipes/util-linux-libuuid/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/util-linux-libuuid/all/conanfile.py b/recipes/util-linux-libuuid/all/conanfile.py index 077d988a85f4f..33b4289d276d1 100644 --- a/recipes/util-linux-libuuid/all/conanfile.py +++ b/recipes/util-linux-libuuid/all/conanfile.py @@ -28,7 +28,7 @@ class UtilLinuxLibuuidConan(ConanFile): default_options = { "shared": False, "fPIC": True, - "with_python_bindings": False, + "with_python_bindings": True, } @property