From 088e34bd419efc3a243f0e5b317f4e11f9b2fbae Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 8 Nov 2024 14:26:36 +0100 Subject: [PATCH 1/2] Ensure output_dir always exists --- constructor/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/constructor/main.py b/constructor/main.py index 2f724bafd..0df347051 100644 --- a/constructor/main.py +++ b/constructor/main.py @@ -241,6 +241,7 @@ def main_build(dir_path, output_dir='.', platform=cc_platform, # '_dists': List[Dist] # '_urls': List[Tuple[url, md5]] + os.makedirs(output_dir, exist_ok=True) info_dicts = [] for itype in itypes: if itype == 'sh': From ba806911b18795e671a4b4ec53a640ddd31da437 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 8 Nov 2024 14:27:55 +0100 Subject: [PATCH 2/2] add news --- news/891-output-dir | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 news/891-output-dir diff --git a/news/891-output-dir b/news/891-output-dir new file mode 100644 index 000000000..9fcc5adc2 --- /dev/null +++ b/news/891-output-dir @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Do not crash if `--output-dir` doesn't exist. Ensure it does before creating installers. (#772 via #891) + +### Deprecations + +* + +### Docs + +* + +### Other + +*