Skip to content

Commit

Permalink
Update inspect_pkg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Oct 18, 2023
1 parent c03d699 commit f280b42
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions conda_build/inspect_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
get_package_obj_files,
get_untracked_obj_files,
)
from conda_build.os_utils.liefldd import codefile_type
from conda_build.os_utils.liefldd import codefile_class, machofile
from conda_build.os_utils.macho import get_rpaths, human_filetype
from conda_build.utils import (
comma_join,
Expand Down Expand Up @@ -354,14 +354,16 @@ def inspect_objects(packages, prefix=sys.prefix, groupby="package"):

info = []
for f in obj_files:
f_info = {}
path = join(prefix, f)
filetype = codefile_type(path)
if filetype == "machofile":
f_info["filetype"] = human_filetype(path, None)
f_info["rpath"] = ":".join(get_rpaths(path))
f_info["filename"] = f
info.append(f_info)
codefile = codefile_class(path)
if codefile == machofile:
info.append(
{
"filetype": human_filetype(path, None),
"rpath": ":".join(get_rpaths(path)),
"filename": f,
}
)

output_string += print_object_info(info, groupby)
if hasattr(output_string, "decode"):
Expand Down

0 comments on commit f280b42

Please sign in to comment.