Actions
Bug #7181
closed[Crunch] crunch-job installer script should handle egg_info errors caused because Git is not installed
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Start date:
09/01/2015
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Story points:
0.5
Description
Problem:
- If git is not installed on a compute node, the "egg_info" part of crunch-job's "install" script fails; fails to detect that the problem was that "git" was missing, and therefore fails to fall back to writing its own setup.cfg; and fails to provide any diagnostic info.
Current code:
open(my $egg_info_pipe, "-|",
"python2.7 \Q$python_dir/setup.py\E --quiet egg_info 2>&1 >/dev/null");
my @egg_info_errors = <$egg_info_pipe>;
close($egg_info_pipe);
if ($?) {
if (@egg_info_errors and ($egg_info_errors[-1] =~ /\bgit\b/)) {
Fix:
- Remove --quiet flag
- Extend the $egg_info_errors condition at the bottom of this block to catch the case where Git is not installed, and go into the following block to write a build tag to setup.cfg. (To figure out what this stderr looks like, take a .tar.gz of the Python SDK, and run
python setup.py egg_info
from it on a host that does not have Git installed.)
Actions