1
0

0001-remove-self-version-checking.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 771a1407b15538697a7f38209e40dbbf58828d33 Mon Sep 17 00:00:00 2001
  2. From: Florian Fieber <florian@florianfieber.de>
  3. Date: Tue, 9 Jun 2015 15:59:04 +0200
  4. Subject: [PATCH] Remove self version checking
  5. Signed-off-by: Florian Fieber <florian@florianfieber.de>
  6. ---
  7. pip/basecommand.py | 10 ----------
  8. pip/cmdoptions.py | 10 ----------
  9. 2 files changed, 20 deletions(-)
  10. diff --git a/pip/basecommand.py b/pip/basecommand.py
  11. index 854d113..c2337a4 100644
  12. --- a/pip/basecommand.py
  13. +++ b/pip/basecommand.py
  14. @@ -22,7 +22,6 @@ from pip.status_codes import (
  15. from pip.utils import get_prog, normalize_path
  16. from pip.utils.deprecation import RemovedInPip8Warning
  17. from pip.utils.logging import IndentingFormatter
  18. -from pip.utils.outdated import pip_version_check
  19. __all__ = ['Command']
  20. @@ -237,15 +236,6 @@ class Command(object):
  21. logger.critical('Exception:', exc_info=True)
  22. return UNKNOWN_ERROR
  23. - finally:
  24. - # Check if we're using the latest version of pip available
  25. - if (not options.disable_pip_version_check and not
  26. - getattr(options, "no_index", False)):
  27. - with self._build_session(
  28. - options,
  29. - retries=0,
  30. - timeout=min(5, options.timeout)) as session:
  31. - pip_version_check(session)
  32. return SUCCESS
  33. diff --git a/pip/cmdoptions.py b/pip/cmdoptions.py
  34. index 9a0446a..4fa29d3 100644
  35. --- a/pip/cmdoptions.py
  36. +++ b/pip/cmdoptions.py
  37. @@ -514,15 +514,6 @@ no_clean = partial(
  38. default=False,
  39. help="Don't clean up build directories.")
  40. -disable_pip_version_check = partial(
  41. - Option,
  42. - "--disable-pip-version-check",
  43. - dest="disable_pip_version_check",
  44. - action="store_true",
  45. - default=False,
  46. - help="Don't periodically check PyPI to determine whether a new version "
  47. - "of pip is available for download. Implied with --no-index.")
  48. -
  49. # Deprecated, Remove later
  50. always_unzip = partial(
  51. Option,
  52. @@ -560,7 +551,6 @@ general_group = {
  53. client_cert,
  54. cache_dir,
  55. no_cache,
  56. - disable_pip_version_check,
  57. ]
  58. }
  59. --
  60. 2.6.2