扩展到剥离二进制文件。
slapos.extension.strip的Python项目详细描述
剥离二进制文件的构建扩展
slapos.extension.strip是一个发现共享 库、二进制可执行文件和静态库以及调用strip(1) 反对他们缩小规模。它在 构建过程。
使用量
在[buildout]节的extensions选项中添加slapos.extension.strip,如:
[buildout] extensions = slapos.extension.strip
要求
需要以下程序。如果有人失踪了,这个 分机什么也不做。
- file
- find
- strip
支持的选项
file-binary
Path to ^{tt4}$ program. Defaults to ‘file’ which should work on any system that has the make program available in the system ^{tt9}$.
find-binary
Path to ^{tt5}$ program. Defaults to ‘find’ which should work on any system that has the find program available in the system ^{tt9}$.
strip-binary
Path to ^{tt6}$ program. Defaults to ‘strip’ which should work on any system that has the strip program available in the system ^{tt9}$.
do-not-strip-path
A new-line separated list of absolute paths of the files you do not want to strip. Do not refer a section to get its location. If you do like ${bazel:location}/bin/bazel, buildout will not work correctly. Instead do like ${buildout:parts-directory}/bazel/bin/bazel.
An example:
[buildout] do-not-strip-path = ${buildout:parts-directory}/bazel/bin/bazel ${buildout:parts-directory}/anotherparts/bin/dontstripbinary
更改
0.4(2017-06-06)
- 修复manifest.in:缺少一些文件。
0.3(2017-06-05)
- 添加对Python3的支持
0.2(2017-01-19)
- 添加不删除路径选项。
0.1(2014-10-22)
- 初次发布。