Skip to content

Support for Python dependency cleanup during uninstall #1006

Description

@AshokThangavel

Description

Currently, when a ZPM module is uninstalled, any external Python packages installed via the requirements.txt are left behind in the python. This results in "orphaned" packages.

I propose adding a -with-python flag to the uninstall command to allow for a comprehensive cleanup of the environment.

Proposed Command

zpm "uninstall <module-name> -r -with-python"

Proposed Implementation Logic

To ensure that using -with-python does not break other modules, and ensure "Safe-Uninstall"

Why this modifier?

  • Explicit Intent: Using -with-python ensures the user is aware that changes are being made to the underlying Python environment, not just the ObjectScript classes.
  • Symmetry: It provides a clean way to "undo" everything the install command initially performed.
  • Maintenance: Greatly simplifies instance maintenance for developers using Embedded Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions