Fix: We don't need the shell for pip
This commit is contained in:
parent
7cd0adb922
commit
2db32289f3
1 changed files with 2 additions and 4 deletions
|
|
@ -65,11 +65,10 @@ class PipCaller(object):
|
||||||
command = [self._command] + list(args)
|
command = [self._command] + list(args)
|
||||||
|
|
||||||
joined_command = " ".join(command)
|
joined_command = " ".join(command)
|
||||||
|
|
||||||
self._logger.debug(u"Calling: {}".format(joined_command))
|
self._logger.debug(u"Calling: {}".format(joined_command))
|
||||||
self.on_log_call(joined_command)
|
self.on_log_call(joined_command)
|
||||||
|
|
||||||
p = sarge.run(joined_command, shell=True, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
|
p = sarge.run(command, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
|
||||||
p.wait_events()
|
p.wait_events()
|
||||||
|
|
||||||
all_stdout = []
|
all_stdout = []
|
||||||
|
|
@ -140,8 +139,7 @@ class PipCaller(object):
|
||||||
|
|
||||||
if pip_command is not None:
|
if pip_command is not None:
|
||||||
self._logger.debug("Found pip at {}, going to figure out its version".format(pip_command))
|
self._logger.debug("Found pip at {}, going to figure out its version".format(pip_command))
|
||||||
command = [pip_command, "--version"]
|
p = sarge.run([pip_command, "--version"], stdout=sarge.Capture(), stderr=sarge.Capture())
|
||||||
p = sarge.run(" ".join(command), shell=True, stdout=sarge.Capture(), stderr=sarge.Capture())
|
|
||||||
|
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
self._logger.warn("Error while trying to run pip --version: {}".format(p.stderr.text))
|
self._logger.warn("Error while trying to run pip --version: {}".format(p.stderr.text))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue