base_temp_dir = tempfile.mkdtemp(prefix=f"numpy_{version_tag}_") logfile_path = os.path.join(base_temp_dir, f"build_commands_{version_tag}.log") ...