Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
help="Show libraries depending on dependencies")])
(opts, paths) = parser.parse_args()
if len(paths) < 1:
parser.print_help()
sys.exit(1)
multi = len(paths) > 1
for path in paths:
if multi:
print(path + ':')
indent = ' '
else:
indent = ''
if isdir(path):
lib_dict = tree_libs(path)
lib_dict = stripped_lib_dict(lib_dict, realpath(getcwd()) + psep)
else:
lib_dict = wheel_libs(path)
keys = sorted(lib_dict)
if not opts.all:
keys = [key for key in keys if filter_system_libs(key)]
if not opts.depending:
if len(keys):
print(indent + ('\n' + indent).join(keys))
continue
i2 = indent + ' '
for key in keys:
print(indent + key + ':')
libs = lib_dict[key]
if len(libs):
print(i2 + ('\n' + i2).join(libs))
"Some missing architectures in wheel")
# Change install ids to be unique within Python space
install_id_root = (DLC_PREFIX +
relpath(package_path, wheel_dir) +
'/')
for lib in copied_libs:
lib_base = basename(lib)
copied_path = pjoin(lib_path, lib_base)
set_install_id(copied_path, install_id_root + lib_base)
validate_signature(copied_path)
_merge_lib_dict(all_copied, copied_libs)
if len(all_copied):
rewrite_record(wheel_dir)
if len(all_copied) or not in_place:
dir2zip(wheel_dir, out_wheel)
return stripped_lib_dict(all_copied, wheel_dir + os.path.sep)