intersystems / intersystems/ipm
Support for Python dependency cleanup during uninstall
- 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
Assessment
This issue has not been assessed yet.