Update only to legacy version on old MacOS
Authored by: StefanLobbenmeier
return 'py2exe', path
if sys._MEIPASS == os.path.dirname(path):
return f'{sys.platform}_dir', path
+ if sys.platform == 'darwin' and version_tuple(platform.mac_ver()[0]) < (10, 15):
+ return 'darwin_legacy_exe', path
return f'{sys.platform}_exe', path
path = os.path.dirname(__file__)
'py2exe': '_min.exe',
'win32_exe': '.exe',
'darwin_exe': '_macos',
+ 'darwin_legacy_exe': '_macos_legacy',
'linux_exe': '_linux',
}