pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

[BUG]: pip uninstall pybind11[global] does not cleanly remove all pybind files

Open NAThompson opened this issue 2 years ago • 0 comments

Required prerequisites

  • [X] Make sure you've read the documentation. Your issue may be addressed there.
  • [X] Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
  • [ ] Consider asking first in the Gitter chat room or in a Discussion.

What version (or hash if on master) of pybind11 are you using?

2.11.1

Problem description

If we pip install pybind11[global], then pip uninstall pybind11[global] does not remove all pybind files.

Reproducible example code

$ python3.11 -m venv .
$ source bin/activate
$ pip install pybind11[global]
$ pip uninstall -y pybind11[global]
$ ls $VIRTUAL_ENV/include/pybind11/
attr.h                      detail/                     gil.h                       pytypes.h
buffer_info.h               eigen/                      iostream.h                  stl/
cast.h                      eigen.h                     numpy.h                     stl.h
chrono.h                    embed.h                     operators.h                 stl_bind.h
common.h                    eval.h                      options.h                   type_caster_pyobject_ptr.h
complex.h                   functional.h                pybind11.h

Is this a regression? Put the last known working version here if it is.

Not a regression

NAThompson avatar Aug 03 '23 15:08 NAThompson