Skip to content

Add build environment to info.json - #1314

Open
lrandersson wants to merge 5 commits into
conda:mainfrom
lrandersson:dev-ra-1247
Open

Add build environment to info.json#1314
lrandersson wants to merge 5 commits into
conda:mainfrom
lrandersson:dev-ra-1247

Conversation

@lrandersson

@lrandersson lrandersson commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds a new key to the file info.json containing a list of packages that are installed in the environment used to build the installer.
Small sample image from the file info.json that is produced when I build the test example outputs using my local conda environment:

  "_build_environment_packages": [
    {
      "name": "zstandard",
      "version": "0.24.0",
      "build": "py313h3d778a8_0",
      "build_number": 0,
      "channel": "https://repo.anaconda.com/pkgs/main/linux-64",
      "subdir": "linux-64",
    ...

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@lrandersson lrandersson self-assigned this Aug 6, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Aug 6, 2026
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Aug 6, 2026
@lrandersson
lrandersson marked this pull request as ready for review August 6, 2026 19:36
@lrandersson
lrandersson requested a review from a team as a code owner August 6, 2026 19:36
Comment thread constructor/main.py
Comment on lines +282 to +283
# Packages installed in the environment running constructor.
info["_build_environment_packages"] = get_build_env_records()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's only needed for the info.json output, maybe this should move to the output section. If we don't output that file, we don't need to gather all this data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

3 participants