2424_CACHE = OrderedDict ()
2525_CACHE [Path (sys .executable )] = PythonInfo ()
2626LOGGER = logging .getLogger (__name__ )
27- _CACHE_FILE_VERSION = 1
2827
2928
3029def from_exe (cls , app_data , exe , env = None , raise_on_error = True , ignore_cache = False ): # noqa: FBT002, PLR0913
@@ -65,13 +64,8 @@ def _get_via_file_cache(cls, app_data, path, exe, env):
6564 with py_info_store .locked ():
6665 if py_info_store .exists (): # if exists and matches load
6766 data = py_info_store .read ()
68- of_path , of_st_mtime , of_content , version = (
69- data ["path" ],
70- data ["st_mtime" ],
71- data ["content" ],
72- data .get ("version" ),
73- )
74- if of_path == path_text and of_st_mtime == path_modified and version == _CACHE_FILE_VERSION :
67+ of_path , of_st_mtime , of_content = data ["path" ], data ["st_mtime" ], data ["content" ]
68+ if of_path == path_text and of_st_mtime == path_modified :
7569 py_info = cls ._from_dict (of_content .copy ())
7670 sys_exe = py_info .system_executable
7771 if sys_exe is not None and not os .path .exists (sys_exe ):
@@ -86,7 +80,6 @@ def _get_via_file_cache(cls, app_data, path, exe, env):
8680 "st_mtime" : path_modified ,
8781 "path" : path_text ,
8882 "content" : py_info ._to_dict (), # noqa: SLF001
89- "version" : _CACHE_FILE_VERSION ,
9083 }
9184 py_info_store .write (data )
9285 else :
0 commit comments