Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Recreate Spyder runtime environment on minor updates (Installers) #22339

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Aug 10, 2024

Description of Changes

Currently, major updates require downloading new installers and minor/micro updates use conda-lock files to update the Spyder runtime environment using conda update. This breaks the environment if the conda-lock file provides a minor update to Python. In order to permit Python minor updates, the runtime environment must be recreated.

This PR has the Update Manager plugin use conda update for micro releases of Spyder, and conda remove and conda create for minor releases of Spyder. This permits Python minor updates to be included with Spyder minor updates. This also has the advantage of removing obsolete packages from the runtime environment on minor updates.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Some minor comments and suggestions for you @mrclary.

installers-conda/build_installers.py Show resolved Hide resolved
spyder/plugins/updatemanager/widgets/update.py Outdated Show resolved Hide resolved
spyder/plugins/updatemanager/widgets/update.py Outdated Show resolved Hide resolved
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Looks good to me now, thanks @mrclary!

@ccordoba12 ccordoba12 changed the title PR: Recreate Spyder runtime environment on minor updates PR: Recreate Spyder runtime environment on minor updates (Installers) Aug 15, 2024
@ccordoba12 ccordoba12 merged commit e6ec310 into spyder-ide:master Aug 15, 2024
24 checks passed
@mrclary mrclary deleted the recreate-runtime branch August 15, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants