pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.36k stars 1.15k forks source link

Fix potential problem with cog script for `vendored` #4353

Closed abravalheri closed 1 month ago

abravalheri commented 1 month ago

Summary of changes

Currently, the cog script may miss packages that are not listed in vendored.txt but get installed by pip (transitive dependencies).

This change simply scans the vendored directories looking for both packages and modules that got installed.

The name was changed because it also consider modules (in opposition to packages).

The alphabetical reordering is a consequence of the way directories are listed in Python/OSs.

Closes

Pull Request Checklist

[PR docs]: https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request