mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 20:00:53 +00:00
Tools: Remove MSYS/Mingw support
MSYS/Mingw was deprecated since v4.0 and it is removed in v5.0. Please follow the getting started guide of the documentation to set up a Windows Command Line or Power Shell based environment.
This commit is contained in:
@@ -244,11 +244,6 @@ def to_shell_specific_paths(paths_list): # type: (list[str]) -> list[str]
|
||||
if sys.platform == 'win32':
|
||||
paths_list = [p.replace('/', os.path.sep) if os.path.sep in p else p for p in paths_list]
|
||||
|
||||
if 'MSYSTEM' in os.environ:
|
||||
paths_msys = run_cmd_check_output(['cygpath', '-u', '-f', '-'],
|
||||
input_text='\n'.join(paths_list))
|
||||
paths_list = paths_msys.decode().strip().split('\n')
|
||||
|
||||
return paths_list
|
||||
|
||||
|
||||
@@ -1257,17 +1252,15 @@ def action_export(args): # type: ignore
|
||||
if idf_tools_dir not in current_path:
|
||||
paths_to_export.append(idf_tools_dir)
|
||||
|
||||
if sys.platform == 'win32' and 'MSYSTEM' not in os.environ:
|
||||
if sys.platform == 'win32':
|
||||
old_path = '%PATH%'
|
||||
path_sep = ';'
|
||||
else:
|
||||
old_path = '$PATH'
|
||||
# can't trust os.pathsep here, since for Windows Python started from MSYS shell,
|
||||
# os.pathsep will be ';'
|
||||
path_sep = ':'
|
||||
|
||||
if args.format == EXPORT_SHELL:
|
||||
if sys.platform == 'win32' and 'MSYSTEM' not in os.environ:
|
||||
if sys.platform == 'win32':
|
||||
export_format = 'SET "{}={}"'
|
||||
export_sep = '\n'
|
||||
else:
|
||||
@@ -1819,4 +1812,8 @@ def main(argv): # type: (list[str]) -> None
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if 'MSYSTEM' in os.environ:
|
||||
fatal('MSys/Mingw is not supported. Please follow the getting started guide of the documentation to set up '
|
||||
'a supported environment')
|
||||
raise SystemExit(1)
|
||||
main(sys.argv[1:])
|
||||
|
Reference in New Issue
Block a user