Commit 5264dc91 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Introduce a workaround for the shebang line length limitation in zc.buildout.easy_install.

parent 762a649d
......@@ -261,7 +261,12 @@ if is_win32:
def _safe_arg(arg):
return '"%s"' % arg
else:
_safe_arg = str
def _safe_arg(arg):
if len(arg) < 126:
return arg
else:
# Workaround for shebang line limit by re-execute by shell.
return '/bin/sh\n"exec" "%s" "$0" "$@"' % arg
def call_subprocess(args, **kw):
if subprocess.call(args, **kw) != 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment