1
0
mirror of synced 2024-12-22 12:50:33 +01:00

sci-libs/nipype: patching out autofail on misparsed version check

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-08-07 01:09:58 -04:00
parent 3d7eff6d69
commit 4a06c7d44e
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
07 Aug 2020; <chymera@gentoo.org> +files/nipype-1.5.0-version_check.patch,
nipype-1.5.0.ebuild:
sci-libs/nipype: patching out autofail on misparsed version check
27 Jul 2020; <chymera@gentoo.org> +files/98nipype, nipype-1.5.0.ebuild:
sci-libs/nipype: disabled etelemetry functionality

View File

@ -0,0 +1,18 @@
--- a/nipype/interfaces/base/core.py 2020-08-06 02:07:56.750154463 -0400
+++ b/nipype/interfaces/base/core.py 2020-08-07 00:56:11.748074237 -0400
@@ -276,6 +276,15 @@
version = LooseVersion(str(self.version))
for name in names:
min_ver = LooseVersion(str(trait_object.traits()[name].min_ver))
+ try:
+ min_ver > version
+ except TypeError:
+ iflogger.warning(
+ 'Nipype is having issues parsing the package version '
+ 'for Trait {} ({})'
+ 'You may want to check whehter {} is larger than {}'
+ .format(name, self.__class__.__name__, version, min_ver)
+ )
if min_ver > version:
unavailable_traits.append(name)
if not isdefined(getattr(trait_object, name)):

View File

@ -44,6 +44,10 @@ RDEPEND="
sci-libs/scipy[${PYTHON_USEDEP}]
"
PATCHES=(
"${FILESDIR}/${P}"-version_check.patch
)
src_prepare() {
# Remove etelemetry
sed -i '/"etelemetry/d' nipype/info.py || die