Skip to content

pypi PKG_INFO returns two packages #2943

Description

@AyanSinhaMahapatra

Description

Scanning pip-22.0.4 returns two PackageData and eventually two top level packages for the same PKG-INFO file at pip-22.0.4/src/pip.egg-info/PKG-INFO.

These have the following datasource IDs pypi_sdist_pkginfo and pypi_editable_egg_pkginfo, see https://github.com/nexB/scancode-toolkit/blob/develop/tests/packagedcode/data/pypi/source-package/pip-22.0.4-pypi-package-expected.json#L973 and https://github.com/nexB/scancode-toolkit/blob/develop/tests/packagedcode/data/pypi/source-package/pip-22.0.4-pypi-package-expected.json#L754.

These has common path patterns. The patterns should be made more strict to return only one package-data per PKG-INFO always.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions