From f9dac0244f42d0fc857c6152418f813cfff5f6bc Mon Sep 17 00:00:00 2001 From: Travis Hathaway Date: Wed, 1 Nov 2023 12:02:11 +0100 Subject: [PATCH 1/2] making the check for missing anaconda executable a little broader --- conda_build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From dee2f4c84f7a8f23b89c18b1dacc48d0258a7614 Mon Sep 17 00:00:00 2001 From: Travis Hathaway Date: Wed, 1 Nov 2023 12:05:41 +0100 Subject: [PATCH 2/2] adding news file --- news/5050-missing-anaconda-client-bugfix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 news/5050-missing-anaconda-client-bugfix 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 + +*