diff options
| author | Michał Górny <mgorny@gentoo.org> | 2020-09-18 22:37:55 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2020-09-21 17:30:01 +0200 |
| commit | 9520fd88a9f8f9a8141e51a53305a5ee13195bd8 (patch) | |
| tree | c3c88d9c0661dc27c9ade69cd52af25ffd36104d /dev-python/python-cstruct/python-cstruct-1.8.ebuild | |
| parent | 135b9b9de5eadd161876bf18a3c35b9efb8e481d (diff) | |
| download | gentoo-9520fd88a9f8f9a8141e51a53305a5ee13195bd8.tar.gz gentoo-9520fd88a9f8f9a8141e51a53305a5ee13195bd8.tar.bz2 gentoo-9520fd88a9f8f9a8141e51a53305a5ee13195bd8.zip | |
install-qa-check.d: add DISTUTILS_USE_SETUPTOOLS check
Move DISTUTILS_USE_SETUPTOOLS check from distutils-r1.eclass to install
QA checks, and rewrite it to use installed egg-info rather than greps
on input files. This produces less false positives, particularly
in packages that use boilerplate empty 'entry_points' in their setup
script or configuration file.
We also no longer require explicit setuptools RDEPEND for packages using
other entry point types than console_scripts -- instead, we assume that
the package consuming these entry points will bring setuptools
as necessary.
The rough idea is to look at egg-info metadata installed by distutils
or setuptools. Plain distutils installs it as a regular file, while
setuptools as a directory, and that's how we distinguish the two.
For setuptools, we additionally grep entry_points.txt for
`[console_scripts]`, and require RDEPEND when they are present.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-cstruct/python-cstruct-1.8.ebuild')
0 files changed, 0 insertions, 0 deletions
