Skip to content

Only include platform-native data files for conda and menuinst#237

Merged
marcoesters merged 4 commits intoconda:mainfrom
marcoesters:platform-data-files
Jan 29, 2026
Merged

Only include platform-native data files for conda and menuinst#237
marcoesters merged 4 commits intoconda:mainfrom
marcoesters:platform-data-files

Conversation

@marcoesters
Copy link
Copy Markdown
Contributor

Description

Currently, conda-standalone includes unnecessary data files in the distributed binary. These are:

  • Windows-only activation scripts and binary entry points for conda.
  • All menuinst schemas and launchers (for macOS) only.

Only include platform-native files. This removes all batch files and Windows binary files from Unix packages, only uses the schema the packaged menuinst version uses, and only ships the launchers that are needed for the target platform.

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?

@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Jan 28, 2026
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 28, 2026
@marcoesters marcoesters marked this pull request as ready for review January 29, 2026 15:00
@marcoesters marcoesters requested a review from a team as a code owner January 29, 2026 15:00
Comment thread src/conda.exe.spec Outdated
from PyInstaller.utils.hooks import collect_submodules, copy_metadata


def get_menuinst_datas() -> list[tuple[str, str]]:
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.

I think this looks good, I just had a few optional cosmetic changes:

  1. get_menuinst_datas -> get_menuinst_data
  2. Use pathlib instead of os.path, but since currently have zero use here of pathlib I'm fine skipping this and replacing this in a separate PR (similar to Use pathlib whenever possible constructor#1063)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I kept what we had before to keep the changes focused. I don't know if pyinstaller can handle Path objects though.

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.

Ah, good point!

@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Approved in 🔎 Review Jan 29, 2026
@marcoesters marcoesters merged commit bbef4c5 into conda:main Jan 29, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Jan 29, 2026
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

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants