commit:     6e13618f5f4ac6983eb0eb90ed3a3b185b8970e6
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 10:43:36 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 11:46:56 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=6e13618f

setup.py: create_entry_points disables ext_modules, for pure python

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 setup.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 709b64ee3..e2c63be2f 100755
--- a/setup.py
+++ b/setup.py
@@ -691,7 +691,9 @@ setup(
                        for path in 
itertools.chain.from_iterable(x_scripts.values())
                ],
        } if create_entry_points else {},
-       ext_modules = [Extension(name=n, sources=m,
+       # create_entry_points disables ext_modules, for pure python
+       ext_modules = [] if create_entry_points else [
+               Extension(name=n, sources=m,
                extra_compile_args=['-D_FILE_OFFSET_BITS=64',
                '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE'])
                for n, m in x_c_helpers.items()],

Reply via email to