Skip to content

incorrect exit status when package cannot be uninstalled #5073

@benoit-pierre

Description

@benoit-pierre
  • Pip version: 9.0.1 / 9.0.1-744-gcb696fce
  • Python version: 3.6.4
  • Operating system: Arch Linux

Description:

Add a package' source directory to PYTHONPATH, and try to uninstall it with pip, e.g.:

> git clone -q --depth 1 https://github.com/python-xlib/python-xlib.git
> (cd python-xlib && python setup.py -q egg_info)
> PYTHONPATH=python-xlib pip uninstall python-xlib; echo $?
Can't uninstall 'python-xlib'. No files were found to uninstall.
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: uninstallThe logic for uninstallation of packageskind: backwards incompatibleWould be backward incompatibleresolution: no actionWhen the resolution is to not do anythingtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions