Skip to content

Commit

Permalink
Update Python howto to explain conda solver selection
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist committed Feb 7, 2024
1 parent 8e53287 commit 6cd02f5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions content/docs/howto/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cd02f5

Please sign in to comment.