Skip to content

Add preservation of site-packages directories on upgrade. - #159

Merged
zooba merged 3 commits into
python:mainfrom
zooba:updates
Sep 3, 2025
Merged

Add preservation of site-packages directories on upgrade.#159
zooba merged 3 commits into
python:mainfrom
zooba:updates

Conversation

@zooba

@zoobazooba commented Sep 1, 2025

Copy link
Copy Markdown
Member

No description provided.

@zooba
zooba requested a review from CopilotSeptember 2, 2025 20:02

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to preserve site-packages directories during Python installation upgrades, preventing the loss of user-installed packages when upgrading Python versions.

  • Introduces site-packages preservation logic with _preserve_site and _restore_site functions
  • Adds configuration option preserve_site_on_upgrade with default value True
  • Integrates preservation workflow into the installation process with proper cleanup

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

FileDescription
src/manage/install_command.pyCore implementation of site-packages preservation and restoration logic
src/manage/commands.pyConfiguration option and command class attribute for preservation feature
tests/test_install_command.pyComprehensive test coverage for preservation functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment threadsrc/manage/install_command.py
Comment threadsrc/manage/install_command.py
Comment threadsrc/manage/install_command.py
Comment threadsrc/manage/install_command.py
@zooba
zooba merged commit d26b802 into python:mainSep 3, 2025
4 checks passed
@zooba
zooba deleted the updates branch September 3, 2025 14:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@zooba