-
Notifications
You must be signed in to change notification settings - Fork 164
/
nipype-1.8.4-no_etelemetry.patch
50 lines (45 loc) · 1.83 KB
/
nipype-1.8.4-no_etelemetry.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff --git a/nipype/__init__.py b/nipype/__init__.py
index 06084e823..2e42dcbce 100644
--- a/nipype/__init__.py
+++ b/nipype/__init__.py
@@ -73,23 +73,6 @@ from .interfaces import (
)
-def check_latest_version(raise_exception=False):
- """
- Check for the latest version of the library.
-
- Parameters
- ----------
- raise_exception: bool
- Raise a RuntimeError if a bad version is being used
- """
- import etelemetry
-
- logger = logging.getLogger("nipype.utils")
- return etelemetry.check_available_version(
- "nipy/nipype", __version__, logger, raise_exception
- )
-
-
# Run telemetry on import for interactive sessions, such as IPython, Jupyter notebooks, Python REPL
if config.getboolean("execution", "check_version"):
import __main__
@@ -98,4 +81,4 @@ if config.getboolean("execution", "check_version"):
from .interfaces.base import BaseInterface
if BaseInterface._etelemetry_version_data is None:
- BaseInterface._etelemetry_version_data = check_latest_version() or "n/a"
+ BaseInterface._etelemetry_version_data = "n/a"
diff --git a/nipype/interfaces/base/core.py b/nipype/interfaces/base/core.py
index c8099be63..f7770dbfc 100644
--- a/nipype/interfaces/base/core.py
+++ b/nipype/interfaces/base/core.py
@@ -183,10 +183,9 @@ class BaseInterface(Interface):
config.getboolean("execution", "check_version")
and "NIPYPE_NO_ET" not in os.environ
):
- from ... import check_latest_version
if BaseInterface._etelemetry_version_data is None:
- BaseInterface._etelemetry_version_data = check_latest_version() or "n/a"
+ BaseInterface._etelemetry_version_data = "n/a"
if not self.input_spec:
raise Exception("No input_spec in class: %s" % self.__class__.__name__)