commit:     aeefba0eeea1e6f03173331edcc26bf8c2f2a215
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 13 18:56:12 2020 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Mon Jan 13 19:00:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeefba0e

distutils-r1.eclass: Fix detection of setuptools entry_points

Closes: https://bugs.gentoo.org/705362
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>

 eclass/distutils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 65294a065da..30265185835 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -447,7 +447,7 @@ _distutils_verify_use_setuptools() {
                # as a special case, setuptools provides itself ;-)
                :
        elif grep -E -q -s '(from|import)\s+setuptools' setup.py; then
-               if grep -E -q -s 'entry_points\s+=' setup.py; then
+               if grep -E -q -s 'entry_points\s*=' setup.py; then
                        expected=rdepend
                else
                        expected=bdepend

Reply via email to