From 64e3332b766c78536884189c9c58efd1777dfd19 Mon Sep 17 00:00:00 2001 From: Travis Hathaway Date: Fri, 3 Nov 2023 14:11:32 +0100 Subject: [PATCH] Fix bug regarding missing `anaconda` executable (#5050) * making the check for missing anaconda executable a little broader * adding news file --- conda_build/build.py | 2 +- news/5050-missing-anaconda-client-bugfix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 news/5050-missing-anaconda-client-bugfix diff --git a/conda_build/build.py b/conda_build/build.py index 1d66cf114f..4268aaef65 100644 --- a/conda_build/build.py +++ b/conda_build/build.py @@ -4099,7 +4099,7 @@ def handle_anaconda_upload(paths, config): print(no_upload_message) return - if anaconda is None: + if not anaconda: print(no_upload_message) sys.exit( "Error: cannot locate anaconda command (required for upload)\n" diff --git a/news/5050-missing-anaconda-client-bugfix b/news/5050-missing-anaconda-client-bugfix new file mode 100644 index 0000000000..99df06709d --- /dev/null +++ b/news/5050-missing-anaconda-client-bugfix @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Fixes the check for a missing anaconda-client so a useful error message is shown + +### Deprecations + +* + +### Docs + +* + +### Other + +*