summaryrefslogtreecommitdiff
blob: e8fe868431d1cd253fd067c2c24c1f088333c4f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/src/pip/_internal/cli/req_command.py b/src/pip/_internal/cli/req_command.py
index 203e86a4..a2183f10 100644
--- a/src/pip/_internal/cli/req_command.py
+++ b/src/pip/_internal/cli/req_command.py
@@ -129,17 +129,8 @@ class IndexGroupCommand(Command, SessionCommandMixin):
         # Make sure the index_group options are present.
         assert hasattr(options, 'no_index')
 
-        if options.disable_pip_version_check or options.no_index:
-            return
-
-        # Otherwise, check if we're using the latest version of pip available.
-        session = self._build_session(
-            options,
-            retries=0,
-            timeout=min(5, options.timeout)
-        )
-        with session:
-            pip_self_version_check(session, options)
+        # Disabled on Gentoo
+        return
 
 
 class RequirementCommand(IndexGroupCommand):