File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 88version = sys .argv [1 ]
99nativeVersion = sys .argv [2 ]
1010architecture = sys .argv [3 ]
11+ hw_architecture = architecture .replace ('-freethreaded' , '' )
1112
1213versions = version .split ("." )
1314version_major = int (versions [0 ])
1415version_minor = int (versions [1 ])
1516
16- pkg_installer = os_type == 'Darwin' and ((version_major == 3 and version_minor >= 11 ) or (architecture == "arm64" ))
17+ pkg_installer = os_type == 'Darwin' and ((version_major == 3 and version_minor >= 11 ) or (hw_architecture == "arm64" ))
1718
1819lib_dir_path = sysconfig .get_config_var ('LIBDIR' )
1920ld_library_name = sysconfig .get_config_var ('LDLIBRARY' )
2021
2122is_shared = sysconfig .get_config_var ('Py_ENABLE_SHARED' )
2223have_libreadline = sysconfig .get_config_var ("HAVE_LIBREADLINE" )
24+ is_free_threaded = sysconfig .get_config_var ('Py_GIL_DISABLED' )
2325
2426### Define expected variables
2527if os_type == 'Linux' : expected_ld_library_extension = 'so'
2628if os_type == 'Darwin' : expected_ld_library_extension = 'dylib'
29+ if is_free_threaded :
30+ framework_name = 'PythonT.framework'
31+ else :
32+ framework_name = 'Python.framework'
2733
2834if pkg_installer :
29- expected_lib_dir_path = f'/Library/Frameworks/Python.framework /Versions/{ version_major } .{ version_minor } /lib'
35+ expected_lib_dir_path = f'/Library/Frameworks/{ framework_name } /Versions/{ version_major } .{ version_minor } /lib'
3036else :
3137 expected_lib_dir_path = f'{ os .getenv ("AGENT_TOOLSDIRECTORY" )} /Python/{ version } /{ architecture } /lib'
3238
You can’t perform that action at this time.
0 commit comments