From 6cd02f5f9c0422b513aba3d5e782a4a5b90d6ebc Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Wed, 7 Feb 2024 10:11:14 +0100 Subject: [PATCH] Update Python howto to explain conda solver selection Signed-off-by: Samuel Gaist --- content/docs/howto/python.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/content/docs/howto/python.md b/content/docs/howto/python.md index 3e1b68a2..e889c9c3 100644 --- a/content/docs/howto/python.md +++ b/content/docs/howto/python.md @@ -109,6 +109,28 @@ of the app source code. Configuring a version of miniconda is not supported. +#### Using `BP_CONDA_SOLVER` + +The original conda solver may suffer slowdowns depending on various factors such +as number of channels configured, package pinning precision, etc. This is an +issue that has been worked on and since a couple of releases, the mamba solver +can be used in place of the original. + +To change the default solver used to create the conda environment, set the +`BP_CONDA_SOLVER` environment variable to "mamba". This is the currently only +value supported. + +{{< code/copyable >}} +pack build my-app --env BP_CONDA_SOLVER=mamba --buildpack paketo-buildpacks/python \ + --builder paketobuildpacks/builder:base +{{< /code/copyable >}} + +**Note:** This does not change the buildpack to be mamba based, only their solver + is used. + +More information can be found in the [release notes] +(https://github.com/paketo-buildpacks/miniconda/releases/latest) + ### Poetry Poetry is a tool to manage both third-party application dependencies and