From bdebd7f57e37db76e9e9bba620a70c9062b7053c Mon Sep 17 00:00:00 2001 From: Mauricio Souza de Alencar Date: Wed, 3 Dec 2025 15:33:29 +0100 Subject: [PATCH 1/3] fix: set proper include and lib paths for building within conda --- setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 341877d97..706ca98ed 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,14 @@ conda_prefix = os.environ.get("CONDA_PREFIX", "").strip('"') if conda_prefix and os.path.exists(os.path.join(conda_prefix, "include")): - includedirs = os.path.join(conda_prefix, "include") - libdir = os.path.join(conda_prefix, "lib") - libname = "libscip" if platform.system() == "Windows" else "scip" + if platform.system() == "Windows": + includedirs = [os.path.join(conda_prefix, "Library/include" )] + libdir = os.path.join(conda_prefix, "Library/lib") + libname = "libscip" + else: + includedirs = [os.path.join(conda_prefix, "include" )] + libdir = os.path.join(conda_prefix, "lib") + libname = "scip" print(f"Detected conda environment at {conda_prefix}.") print(f"Using include path {includedirs}.") print(f"Using library directory {libdir}.\n") From 4a9d1b6d0a60cb4a35c67a338650b418e19ed37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dion=C3=ADsio?= <57299939+Joao-Dionisio@users.noreply.github.com> Date: Thu, 4 Dec 2025 18:14:36 +0100 Subject: [PATCH 2/3] Update setup.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 706ca98ed..38384569d 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ if conda_prefix and os.path.exists(os.path.join(conda_prefix, "include")): if platform.system() == "Windows": - includedirs = [os.path.join(conda_prefix, "Library/include" )] + includedirs = [os.path.join(conda_prefix, "Library/include")] libdir = os.path.join(conda_prefix, "Library/lib") libname = "libscip" else: From 4dbb73d471306968c58449575e20b90a9241ce7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dion=C3=ADsio?= <57299939+Joao-Dionisio@users.noreply.github.com> Date: Thu, 4 Dec 2025 18:14:47 +0100 Subject: [PATCH 3/3] Update setup.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 38384569d..45168eb23 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ libdir = os.path.join(conda_prefix, "Library/lib") libname = "libscip" else: - includedirs = [os.path.join(conda_prefix, "include" )] + includedirs = [os.path.join(conda_prefix, "include")] libdir = os.path.join(conda_prefix, "lib") libname = "scip" print(f"Detected conda environment at {conda_prefix}.")