commit: 733fbcdcf08b74153bb6c3786e8f79ba031cb339 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be> AuthorDate: Fri Nov 4 23:01:51 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Nov 14 08:58:06 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=733fbcdc
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 eclass/distutils-r1.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index fb0362c..2db3be8 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}"