Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.buildout
Commits
cc783be3
Commit
cc783be3
authored
Jan 17, 2017
by
Yusei Tahara
Committed by
Kazuhiko Shiozaki
Jan 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add do-not-strip-path option to avoid applying strip.
parent
cf071eb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
slapos.extension.strip_/slapos/extension/strip/__init__.py
slapos.extension.strip_/slapos/extension/strip/__init__.py
+3
-0
No files found.
slapos.extension.strip_/slapos/extension/strip/__init__.py
View file @
cc783be3
...
@@ -9,6 +9,7 @@ def finish(buildout):
...
@@ -9,6 +9,7 @@ def finish(buildout):
file_binary
=
buildout
[
'buildout'
].
get
(
'file-binary'
,
'file'
)
file_binary
=
buildout
[
'buildout'
].
get
(
'file-binary'
,
'file'
)
find_binary
=
buildout
[
'buildout'
].
get
(
'find-binary'
,
'find'
)
find_binary
=
buildout
[
'buildout'
].
get
(
'find-binary'
,
'find'
)
strip_binary
=
buildout
[
'buildout'
].
get
(
'strip-binary'
,
'strip'
)
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
):
def
run_strip
(
path
,
strip_args
):
mode
=
os
.
stat
(
path
).
st_mode
mode
=
os
.
stat
(
path
).
st_mode
...
@@ -30,6 +31,8 @@ def finish(buildout):
...
@@ -30,6 +31,8 @@ def finish(buildout):
executable_list
=
[]
executable_list
=
[]
static_lib_list
=
[]
static_lib_list
=
[]
for
path
in
file_list
.
splitlines
():
for
path
in
file_list
.
splitlines
():
if
path
in
do_not_strip_path
:
continue
file_name
=
os
.
path
.
basename
(
path
)
file_name
=
os
.
path
.
basename
(
path
)
if
re
.
match
(
'.*
\
.(so(
\
..+)?|cmxs)$'
,
file_name
):
if
re
.
match
(
'.*
\
.(so(
\
..+)?|cmxs)$'
,
file_name
):
args
=
[
file_binary
,
path
]
args
=
[
file_binary
,
path
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment