Skip to content

Commit b360968

Browse files
committed
pip: Remove AssertionError for the existence of pip
1 parent 97cbc62 commit b360968

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pybombs/packagers/pip.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
PIP_INSTALLED_CACHE = None
3232

3333
def detect_pip_exe():
34-
"""TODO: Docstring for detect_pip_exe.
35-
:returns: TODO
36-
34+
"""
35+
Returns the path to the pip version used. Factors in the available Python
36+
version.
3737
"""
3838
from pybombs.config_manager import config_manager
3939
if vcompare('>=', config_manager.get_python_version(), '3'):
@@ -53,8 +53,10 @@ class ExternalPip(ExternPackager):
5353
def __init__(self, logger):
5454
ExternPackager.__init__(self, logger)
5555
self.cmd = detect_pip_exe()
56-
assert self.cmd
57-
self.log.debug("Using pip executable: %s", self.cmd)
56+
if self.cmd:
57+
self.log.debug("Using pip executable: %s", self.cmd)
58+
else:
59+
self.log.debug(" pip executable not found.")
5860

5961
def get_available_version(self, pkgname):
6062
"""

0 commit comments

Comments
 (0)