distutils-r1.eclass: Look for entry_points in setup.cfg
authorMichał Górny <mgorny@gentoo.org>
Fri, 17 Jan 2020 05:26:52 +0000 (06:26 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 17 Jan 2020 05:52:19 +0000 (06:52 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/distutils-r1.eclass

index 3026518583523931d7080909f9557f71633fbf22..a840769cdecf1382f0c63539ccb238073d3aa6df 100644 (file)
@@ -449,6 +449,8 @@ _distutils_verify_use_setuptools() {
        elif grep -E -q -s '(from|import)\s+setuptools' setup.py; then
                if grep -E -q -s 'entry_points\s*=' setup.py; then
                        expected=rdepend
+               elif grep -F -q -s '[options.entry_points]' setup.cfg; then
+                       expected=rdepend
                else
                        expected=bdepend
                fi