1 |
Explicitly pass --skip-build in order to prevent distutils from |
2 |
rebuilding files when installing. This is especially relevant to some |
3 |
packages that build extensions, and the extensions get built again |
4 |
in src_install(). |
5 |
|
6 |
Technically, this can break some customized build systems that write |
7 |
implementation-specific data into source directory, and right now |
8 |
the implied rebuild caused it to be rewritten when installing. With |
9 |
this patch, the newest version of the file would be installed for all |
10 |
interpreters. I am not aware of any such packages, though. |
11 |
|
12 |
Signed-off-by: Michał Górny <mgorny@g.o> |
13 |
--- |
14 |
eclass/distutils-r1.eclass | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
18 |
index fd6c0193d12e..51e99a009df1 100644 |
19 |
--- a/eclass/distutils-r1.eclass |
20 |
+++ b/eclass/distutils-r1.eclass |
21 |
@@ -873,7 +873,7 @@ distutils-r1_python_install() { |
22 |
local root=${D%/}/_${EPYTHON} |
23 |
[[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/} |
24 |
|
25 |
- esetup.py install --root="${root}" "${args[@]}" |
26 |
+ esetup.py install --skip-build --root="${root}" "${args[@]}" |
27 |
|
28 |
local forbidden_package_names=( examples test tests .pytest_cache ) |
29 |
local p |
30 |
-- |
31 |
2.25.2 |