Comment 0 for bug 1052161

Revision history for this message
Alessandro Pilotti (alexpilotti) wrote :

python setup.py build fails on Windows due to the following hardcoded /bib/sh path in setup.py, line 120:

def _run_shell_command(cmd):
    output = subprocess.Popen(["/bin/sh", "-c", cmd],
                              stdout=subprocess.PIPE)

It works fine with msysgit's sh.exe, whose default path is:

"%ProgramFiles% (x86)\Git\bin\sh.exe"

A possible solution consists in replacing "/bin/sh" with "sh" (at least if os.name == 'nt')