# Azure SDK for Python Conda Distributions The azure-sdk team maintains a suite of conda recipes built from combinations of other official pypi packages released from this repository. These packages are released on a 3-month cadence, built from a single configuration present in `eng/pipelines/templates/stages/conda-sdk-client.yml`. The value of `CondaArtifacts` parameter is serialized to json, then consumed by the tooling CLI to create a set of conda packages. ## Local Environment Setup Follow the instructions [here](https://docs.conda.io/projects/conda-build/en/latest/install-conda-build.html) to install `conda` and `conda-build`. ## CI Build Process - Update `CondaArtifacts` parameters as necessary within `eng/pipelines/templates/stages/conda-sdk-client.yml` . - If necessary, add or update the conda recipes present under `/conda/conda-recipes`. - Update `eng/conda_env.yml` variable `AZURESDK_CONDA_VERSION` to the target version you wish to release. - Invoke [python - conda](https://dev.azure.com/azure-sdk/internal/_build?definitionId=6321) manually, checking off which packages you wish to release. - Once built, approve the packages for release individually, there will be pending approval stages. ## How to Build an Azure SDK Conda Package Locally ### Install the required tooling ```bash # cd pip install "tools/azure-sdk-tools[build,conda]" ``` ### Get the configuration blob To generate a configuration blob, I personally just use [this site.](https://jsonformatter.org/yaml-to-json) Paste a snippet copy-pasted from `conda-sdk-client.yml`. Use the output json as an argument to `sdk_build_conda` as described below. ### Generate the Conda Package ```bash # you will probably need to escape the json quotes sdk_build_conda -c "" --channel "additional/channel/if/you/want/one" ```