From 6c430859e1d24ecafddb2d4acefc58db26fc89a4 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 8 Nov 2024 17:58:57 +0100 Subject: [PATCH] Ensure `--output-dir` always exists (#891) --- constructor/main.py | 1 + news/891-output-dir | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 news/891-output-dir diff --git a/constructor/main.py b/constructor/main.py index 5f8a95429..79fa8c3ef 100644 --- a/constructor/main.py +++ b/constructor/main.py @@ -250,6 +250,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': 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 + +*