From 16d877248f9e09387a0a01854c1e076d98c41795 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 18 Dec 2023 18:40:47 +0100 Subject: [PATCH] clarify solver <-> specs interaction --- CONSTRUCT.md | 8 +++++--- constructor/construct.py | 8 +++++--- docs/source/construct-yaml.md | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CONSTRUCT.md b/CONSTRUCT.md index 7440b3967..f737677a3 100644 --- a/CONSTRUCT.md +++ b/CONSTRUCT.md @@ -95,9 +95,11 @@ by an exact URL; e.g., `https://repo.anaconda.com/pkgs/main/osx-64/openssl-1.0.2o-h26aff7b_0.tar.bz2`. This key can also take a `str` pointing to a requirements file with the same syntax. -The specs will be solved with the solver configured for your `base` conda installation, -if any. Starting with conda 22.11, this behavior can be overriden with the -`CONDA_SOLVER` environment variable. +Note: `constructor` relies on `conda`'s Python API to solve the passed +specifications. You can still set the `CONDA_SOLVER` environment variable +to override system-wide settings for `constructor`. If you are using +`constructor` from a non-`base` environment, make sure the +configured solver plugin is also installed in that environment. ### `user_requested_specs` diff --git a/constructor/construct.py b/constructor/construct.py index ea246d400..55d19f861 100644 --- a/constructor/construct.py +++ b/constructor/construct.py @@ -61,9 +61,11 @@ `https://repo.anaconda.com/pkgs/main/osx-64/openssl-1.0.2o-h26aff7b_0.tar.bz2`. This key can also take a `str` pointing to a requirements file with the same syntax. -The specs will be solved with the solver configured for your `base` conda installation, -if any. Starting with conda 22.11, this behavior can be overriden with the -`CONDA_SOLVER` environment variable. +Note: `constructor` relies on `conda`'s Python API to solve the passed +specifications. You can still set the `CONDA_SOLVER` environment variable +to override system-wide settings for `constructor`. If you are using +`constructor` from a non-`base` environment, make sure the +configured solver plugin is also installed in that environment. '''), ('user_requested_specs', False, (list, str), ''' diff --git a/docs/source/construct-yaml.md b/docs/source/construct-yaml.md index 7440b3967..f737677a3 100644 --- a/docs/source/construct-yaml.md +++ b/docs/source/construct-yaml.md @@ -95,9 +95,11 @@ by an exact URL; e.g., `https://repo.anaconda.com/pkgs/main/osx-64/openssl-1.0.2o-h26aff7b_0.tar.bz2`. This key can also take a `str` pointing to a requirements file with the same syntax. -The specs will be solved with the solver configured for your `base` conda installation, -if any. Starting with conda 22.11, this behavior can be overriden with the -`CONDA_SOLVER` environment variable. +Note: `constructor` relies on `conda`'s Python API to solve the passed +specifications. You can still set the `CONDA_SOLVER` environment variable +to override system-wide settings for `constructor`. If you are using +`constructor` from a non-`base` environment, make sure the +configured solver plugin is also installed in that environment. ### `user_requested_specs`