1 |
commit: 6e13618f5f4ac6983eb0eb90ed3a3b185b8970e6 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 10:43:36 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 11:46:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=6e13618f |
7 |
|
8 |
setup.py: create_entry_points disables ext_modules, for pure python |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
setup.py | 4 +++- |
13 |
1 file changed, 3 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/setup.py b/setup.py |
16 |
index 709b64ee3..e2c63be2f 100755 |
17 |
--- a/setup.py |
18 |
+++ b/setup.py |
19 |
@@ -691,7 +691,9 @@ setup( |
20 |
for path in itertools.chain.from_iterable(x_scripts.values()) |
21 |
], |
22 |
} if create_entry_points else {}, |
23 |
- ext_modules = [Extension(name=n, sources=m, |
24 |
+ # create_entry_points disables ext_modules, for pure python |
25 |
+ ext_modules = [] if create_entry_points else [ |
26 |
+ Extension(name=n, sources=m, |
27 |
extra_compile_args=['-D_FILE_OFFSET_BITS=64', |
28 |
'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE']) |
29 |
for n, m in x_c_helpers.items()], |