Cleaned up/fixed skip_path with @nornagon's suggestion.
Co-Authored-By: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
parent
3154275d2f
commit
e367aff8ac
1 changed files with 6 additions and 9 deletions
15
build/zip.py
15
build/zip.py
|
@ -21,15 +21,12 @@ PATHS_TO_SKIP = [
|
||||||
]
|
]
|
||||||
|
|
||||||
def skip_path(dep):
|
def skip_path(dep):
|
||||||
should_skip = False
|
should_skip = (
|
||||||
for path in PATHS_TO_SKIP:
|
any(dep.startswith(path) for path in PATHS_TO_SKIP) or
|
||||||
if dep.startswith(path):
|
any(dep.endswith(ext) for ext in EXTENSIONS_TO_SKIP))
|
||||||
print 'Skipping: '+dep
|
if should_skip:
|
||||||
should_skip = True
|
print("Skipping {}".format(dep))
|
||||||
for extension in EXTENSIONS_TO_SKIP:
|
return should_skip
|
||||||
if dep.endswith(extension):
|
|
||||||
print 'Skipping: '+dep
|
|
||||||
should_skip = True
|
|
||||||
|
|
||||||
def strip_binaries(target_cpu, dep):
|
def strip_binaries(target_cpu, dep):
|
||||||
for binary in LINUX_BINARIES_TO_STRIP:
|
for binary in LINUX_BINARIES_TO_STRIP:
|
||||||
|
|
Loading…
Reference in a new issue