Skip to content

uninstalling pythonmonkey does not install pminit #430

@wesgarland

Description

@wesgarland

Issue type

Bug

How did you install PythonMonkey?

Installed from pip

OS platform and distribution

macOs 10.15.7

Python version (python --version)

3.11.4

PythonMonkey version (pip show pythonmonkey)

0.8.2.dev25+c8aa8d7

Bug Description

I installed a pythonmonkey nightly
Then I uninstalled it, so that I could reinstall the current release
It left behind pminit, which is understandable but annoying and slightly user-hostile

Proceed (Y/n)? Y
  Successfully uninstalled pythonmonkey-0.8.2.dev25+c8aa8d7
[~] Wes-iMac-2019:wes# python
Python 3.11.4 (main, Jul 17 2023, 10:45:54) [Clang 11.0.3 (clang-1103.0.32.59)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pminit
>>> pminit
<module 'pminit' from '/usr/local/lib/python3.11/site-packages/pminit/__init__.py'>

We need to either clean up pminit in a hook during uninstall, or update the install docs to tell folks how to properly uninstall. The first solution is a much more preferable solution, but either is okay for 1.0.

Standalone code to reproduce the issue

No response

Relevant log output or backtrace

No response

Additional info if applicable

No response

What branch of PythonMonkey were you developing on? (If applicable)

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions