Commit cc783be3 authored by Yusei Tahara's avatar Yusei Tahara Committed by Kazuhiko Shiozaki

Add do-not-strip-path option to avoid applying strip.

parent cf071eb8
......@@ -9,6 +9,7 @@ def finish(buildout):
file_binary = buildout['buildout'].get('file-binary', 'file')
find_binary = buildout['buildout'].get('find-binary', 'find')
strip_binary = buildout['buildout'].get('strip-binary', 'strip')
do_not_strip_path = buildout['buildout'].get('do-not-strip-path', '').splitlines(False)
def run_strip(path, strip_args):
mode = os.stat(path).st_mode
......@@ -30,6 +31,8 @@ def finish(buildout):
executable_list = []
static_lib_list = []
for path in file_list.splitlines():
if path in do_not_strip_path:
continue
file_name = os.path.basename(path)
if re.match('.*\.(so(\..+)?|cmxs)$', file_name):
args = [file_binary, path]
......
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