intersystems / intersystems/ipm

Support for Python dependency cleanup during uninstall

Open
#1,006 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
ObjectScript
Stars
41
Forks
29
Avg merge
23h 54m
Merged PRs (30d)
4

Description

### 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

```intersystems-objectscript
zpm "uninstall -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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.