* [gentoo-dev] [PATCH] distutils-r1.eclass: Pass --skip-build when installing
@ 2020-03-22 5:57 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2020-03-22 5:57 UTC (permalink / raw
To: gentoo-dev; +Cc: python, Michał Górny
Explicitly pass --skip-build in order to prevent distutils from
rebuilding files when installing. This is especially relevant to some
packages that build extensions, and the extensions get built again
in src_install().
Technically, this can break some customized build systems that write
implementation-specific data into source directory, and right now
the implied rebuild caused it to be rewritten when installing. With
this patch, the newest version of the file would be installed for all
interpreters. I am not aware of any such packages, though.
Signed-off-by: Michał Górny <mgorny@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 fd6c0193d12e..51e99a009df1 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -873,7 +873,7 @@ distutils-r1_python_install() {
local root=${D%/}/_${EPYTHON}
[[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D%/}
- esetup.py install --root="${root}" "${args[@]}"
+ esetup.py install --skip-build --root="${root}" "${args[@]}"
local forbidden_package_names=( examples test tests .pytest_cache )
local p
--
2.25.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-22 5:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-22 5:57 [gentoo-dev] [PATCH] distutils-r1.eclass: Pass --skip-build when installing Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox