1
0
Fork 0

sci-libs/nipype: disabled etelemetry functionality

Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2020-07-27 04:00:38 -04:00
parent 57864bb298
commit 23f513cd9b
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,6 @@
27 Jul 2020; <chymera@gentoo.org> +files/98nipype, nipype-1.5.0.ebuild:
sci-libs/nipype: disabled etelemetry functionality
*nipype-1.5.0 (17 Jul 2020)
17 Jul 2020; <chymera@gentoo.org> +nipype-1.5.0.ebuild:

View File

@ -0,0 +1 @@
export NIPYPE_NO_ET=1

View File

@ -45,6 +45,10 @@ RDEPEND="
"
src_prepare() {
# Remove etelemetry
sed -i '/"etelemetry/d' nipype/info.py || die
# Mark failing tests
sed -i \
-e "/def test_no_et(tmp_path):/i@pytest.mark.skip('Known to fail by upstream: https://github.com/nipy/nipype/issues/3196#issuecomment-606003186')" \
nipype/tests/test_nipype.py || die
@ -54,6 +58,11 @@ src_prepare() {
default
}
python_install_all() {
distutils-r1_python_install_all
doenvd "${FILESDIR}/98nipype"
}
python_test() {
# Setting environment variable to disable etelemetry version check:
# https://github.com/nipy/nipype/issues/3196#issuecomment-605980044
@ -66,3 +75,11 @@ python_test() {
#--cov-config .coveragerc\
#--cov-report xml:cov.xml\
}
pkg_postinst() {
echo
einfo "Please run the following commands if you"
einfo "intend to use nipype from an existing shell:"
einfo "source /etc/profile"
echo
}