summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathy Vanvoorden <mathy@vanvoorden.be>2016-11-05 00:01:51 +0100
committerMichał Górny <mgorny@gentoo.org>2016-11-14 09:58:06 +0100
commit733fbcdcf08b74153bb6c3786e8f79ba031cb339 (patch)
tree5349f3946e11c4ac30daec3c68a8fe91f7ac4559 /eclass/distutils-r1.eclass
parentdev-lang/php: Stable for PPC64 (bug #599326). (diff)
downloadgentoo-733fbcdcf08b74153bb6c3786e8f79ba031cb339.tar.gz
gentoo-733fbcdcf08b74153bb6c3786e8f79ba031cb339.tar.bz2
gentoo-733fbcdcf08b74153bb6c3786e8f79ba031cb339.zip
distutils-r1.eclass: make *_install_for_testing install proper egg-info
Currently distutils_install_for_testing does not install the complete egg-info into ${TEST_DIR}. This was first noticed by W. Trevor King and reported in bug #524322. Based on info found in the related upstream setuptools bug I added the necessary call to setuptools to create the complete egg_info. Without this certain packages (like cryptography) fail during testing because they use introspection but the metadata isn't available. Bug: https://bugs.gentoo.org/524322
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index fb0362c30226..2db3be8b5e95 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -288,6 +288,8 @@ distutils_install_for_testing() {
PYTHONPATH=${libdir}:${PYTHONPATH}
local add_args=(
+ egg_info
+ --egg-base="${libdir}"
install
--home="${TEST_DIR}"
--install-lib="${libdir}"