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:
parent
57864bb298
commit
23f513cd9b
@ -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)
|
*nipype-1.5.0 (17 Jul 2020)
|
||||||
|
|
||||||
17 Jul 2020; <chymera@gentoo.org> +nipype-1.5.0.ebuild:
|
17 Jul 2020; <chymera@gentoo.org> +nipype-1.5.0.ebuild:
|
||||||
|
1
sci-libs/nipype/files/98nipype
Normal file
1
sci-libs/nipype/files/98nipype
Normal file
@ -0,0 +1 @@
|
|||||||
|
export NIPYPE_NO_ET=1
|
@ -45,6 +45,10 @@ RDEPEND="
|
|||||||
"
|
"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
# Remove etelemetry
|
||||||
|
sed -i '/"etelemetry/d' nipype/info.py || die
|
||||||
|
|
||||||
|
# Mark failing tests
|
||||||
sed -i \
|
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')" \
|
-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
|
nipype/tests/test_nipype.py || die
|
||||||
@ -54,6 +58,11 @@ src_prepare() {
|
|||||||
default
|
default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
doenvd "${FILESDIR}/98nipype"
|
||||||
|
}
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
# Setting environment variable to disable etelemetry version check:
|
# Setting environment variable to disable etelemetry version check:
|
||||||
# https://github.com/nipy/nipype/issues/3196#issuecomment-605980044
|
# https://github.com/nipy/nipype/issues/3196#issuecomment-605980044
|
||||||
@ -66,3 +75,11 @@ python_test() {
|
|||||||
#--cov-config .coveragerc\
|
#--cov-config .coveragerc\
|
||||||
#--cov-report xml:cov.xml\
|
#--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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user