From d48dc2dabe6259bbf0e39925fa0bc7bb6d02b95d Mon Sep 17 00:00:00 2001 From: gadial Date: Tue, 4 Feb 2025 14:40:17 +0200 Subject: [PATCH] Try to handle conan setup from cmakelists --- CMakeLists.txt | 1 + pyproject.toml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bbda7dccf..9ceb06e613 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -176,6 +176,7 @@ endif() # Looking for external libraries # set(BACKEND_REDIST_DEPS "") # List of redistributable dependencies +execute_process(COMMAND conan profile detect --force) setup_dependencies() # If we do not set them with a space CMake fails afterwards if nothing is set for this vars! diff --git a/pyproject.toml b/pyproject.toml index e4f3a61707..7bb1a85151 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,6 @@ test-command = "python {project}/tools/verify_wheels.py" # Numpy 1.22 there are no i686 wheels, so we force pip to use older ones without # restricting any dependencies that Numpy and Scipy might have. before-test = "pip install --only-binary=numpy,scipy numpy scipy" -before-build = "pip install conan && conan profile detect --force" [tool.cibuildwheel.linux] before-all = "sed -i -e 's/^mirrorlist/#mirrorlist/' -e 's/^#baseurl/baseurl/' -e 's/mirror.centos.org/vault.centos.org/' /etc/yum.repos.d/*.repo && yum install -y openblas-devel"