Skip to content

Conversation

zooba
Copy link
Member

@zooba zooba commented Sep 1, 2025

No description provided.

@zooba zooba requested a review from Copilot September 2, 2025 20:02
Copy link

@Copilot Copilot AI left a comment

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.

File Description
src/manage/install_command.py Core implementation of site-packages preservation and restoration logic
src/manage/commands.py Configuration option and command class attribute for preservation feature
tests/test_install_command.py Comprehensive test coverage for preservation functionality

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

@zooba zooba merged commit d26b802 into python:main Sep 3, 2025
4 checks passed
@zooba zooba deleted the updates branch September 3, 2025 14:58
Sign up for free to 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.

1 participant