Skip to content

[BUG] pip list duplicate package entries #3888

@AmeyaVS

Description

@AmeyaVS

setuptools version

67.6.1

Python version

Python 3.11.2

OS

Fedora 37

Additional environment information

No response

Description

Have reported same issue in pip package: pypa/pip#11937.

While trying out example from scikit-build examples:
hello-cpp

Duplicate entries of the C++ extension is displayed when installing package through setup.py.

Expected behavior

Only a single instance of the C++ extension package should be listed.

How to Reproduce

  1. Get following source: hello-cpp
  2. Using python setup.py:
    2.1. Build C++ Extension Package:
    $  python setup.py build
    2.2. Install package in venv:
    $ python setup.py install

Output

List packages:

$ pip list
Package      Version
------------ -------
distro       1.8.0
hello-cpp    1.2.3
hello-cpp    1.2.3
hello-cpp    1.2.3
packaging    23.0
pip          23.0.1
scikit-build 0.16.7
setuptools   67.6.1
wheel        0.40.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions