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:
parent
3d7eff6d69
commit
4a06c7d44e
@ -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
|
||||
|
||||
|
18
sci-libs/nipype/files/nipype-1.5.0-version_check.patch
Normal file
18
sci-libs/nipype/files/nipype-1.5.0-version_check.patch
Normal 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)):
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user