We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cbc62 commit b360968Copy full SHA for b360968
pybombs/packagers/pip.py
@@ -31,9 +31,9 @@
31
PIP_INSTALLED_CACHE = None
32
33
def detect_pip_exe():
34
- """TODO: Docstring for detect_pip_exe.
35
- :returns: TODO
36
-
+ """
+ Returns the path to the pip version used. Factors in the available Python
+ version.
37
"""
38
from pybombs.config_manager import config_manager
39
if vcompare('>=', config_manager.get_python_version(), '3'):
@@ -53,8 +53,10 @@ class ExternalPip(ExternPackager):
53
def __init__(self, logger):
54
ExternPackager.__init__(self, logger)
55
self.cmd = detect_pip_exe()
56
- assert self.cmd
57
- self.log.debug("Using pip executable: %s", self.cmd)
+ if self.cmd:
+ self.log.debug("Using pip executable: %s", self.cmd)
58
+ else:
59
+ self.log.debug(" pip executable not found.")
60
61
def get_available_version(self, pkgname):
62
0 commit comments