Project

General

Profile

Actions

Bug #7181

closed

[Crunch] crunch-job installer script should handle egg_info errors caused because Git is not installed

Added by Tom Clegg over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
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.)

Subtasks 1 (0 open1 closed)

Task #7347: Review 7181-crunch-missing-gitResolvedPeter Amstutz09/01/2015Actions
Actions

Also available in: Atom PDF