From c4abce5c119296d7289352ab395d735731f550d1 Mon Sep 17 00:00:00 2001 From: Duncan Macleod Date: Wed, 4 Oct 2023 15:54:49 +0100 Subject: [PATCH] Print package file name in get_hash_input (#5021) * inspect_pkg: use entire file name in get_hash_input rather than trying to strip off the suffix --------- Co-authored-by: Bianca Henderson --- conda_build/inspect_pkg.py | 2 +- news/5021-get_hash_input | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 news/5021-get_hash_input diff --git a/conda_build/inspect_pkg.py b/conda_build/inspect_pkg.py index 6e5e9a4980..e38c5aa9e7 100644 --- a/conda_build/inspect_pkg.py +++ b/conda_build/inspect_pkg.py @@ -372,7 +372,7 @@ def inspect_objects(packages, prefix=sys.prefix, groupby="package"): def get_hash_input(packages): hash_inputs = {} for pkg in ensure_list(packages): - pkgname = os.path.basename(pkg)[:-8] + pkgname = os.path.basename(pkg) hash_inputs[pkgname] = {} hash_input = package_has_file(pkg, "info/hash_input.json") if hash_input: diff --git a/news/5021-get_hash_input b/news/5021-get_hash_input new file mode 100644 index 0000000000..f92b78db55 --- /dev/null +++ b/news/5021-get_hash_input @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Print package file name in `get_hash_input`. (#5021) + +### Deprecations + +* + +### Docs + +* + +### Other + +*