Skip to content

Conversation

@Jrice1317
Copy link
Contributor

@Jrice1317 Jrice1317 commented Sep 9, 2025

Description

This PR:

  • Adds support for creating installers with protected environments
  • Detects and tests marker file existence
  • Checks compatibility with conda-standalone
  • Adds helper function for version check

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 Sep 9, 2025
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Sep 9, 2025
@Jrice1317 Jrice1317 changed the title Protected envs [WIP] Protected envs Sep 9, 2025
@Jrice1317 Jrice1317 marked this pull request as ready for review September 16, 2025 18:42
@Jrice1317 Jrice1317 requested a review from a team as a code owner September 16, 2025 18:42
@Jrice1317 Jrice1317 changed the title [WIP] Protected envs Add support for protected conda environments Sep 16, 2025
@Jrice1317 Jrice1317 marked this pull request as draft September 19, 2025 20:58
@Jrice1317 Jrice1317 marked this pull request as ready for review September 22, 2025 20:51
@Jrice1317 Jrice1317 requested a review from jaimergp September 22, 2025 20:51
Copy link
Contributor

@marcoesters marcoesters left a comment

Choose a reason for hiding this comment

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

Just small things left, in my opinion.

@marcoesters
Copy link
Contributor

pre-commit.ci autofix

Comment on lines 320 to 321
if request and ON_CI:
request.addfinalizer(lambda: shutil.rmtree(str(install_dir), ignore_errors=True))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we do this for all installers? Regardless, let's add a comment that we are doing this to free space and prevent "running out of storage" errors.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since we uninstall by default on Windows, I'm not worried about EXE installers. PKG installers already have that finalizer. I did add a comment though.

jaimergp
jaimergp previously approved these changes Oct 2, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Approved in 🔎 Review Oct 2, 2025
@marcoesters marcoesters merged commit f3aaad0 into conda:main Oct 3, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Approved to 🏁 Done in 🔎 Review Oct 3, 2025
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: 🏁 Done

Development

Successfully merging this pull request may close these issues.

4 participants