@@ -80,8 +80,8 @@ FLAGS = struct(
8080 "is_pip_whl_auto" ,
8181 "is_pip_whl_no" ,
8282 "is_pip_whl_only" ,
83- "is_py_freethreaded " ,
84- "is_py_non_freethreaded " ,
83+ "_is_py_freethreaded_yes " ,
84+ "_is_py_freethreaded_no " ,
8585 "pip_whl_glibc_version" ,
8686 "pip_whl_muslc_version" ,
8787 "pip_whl_osx_arch" ,
@@ -205,12 +205,12 @@ def _dist_config_settings(*, suffix, plat_flag_values, python_version, **kwargs)
205205 for name , f , compatible_with in [
206206 ("py_none" , _flags .whl , None ),
207207 ("py3_none" , _flags .whl_py3 , None ),
208- ("py3_abi3" , _flags .whl_py3_abi3 , (FLAGS .is_py_non_freethreaded ,)),
208+ ("py3_abi3" , _flags .whl_py3_abi3 , (FLAGS ._is_py_freethreaded_no ,)),
209209 ("none" , _flags .whl_pycp3x , None ),
210- ("abi3" , _flags .whl_pycp3x_abi3 , (FLAGS .is_py_non_freethreaded ,)),
210+ ("abi3" , _flags .whl_pycp3x_abi3 , (FLAGS ._is_py_freethreaded_no ,)),
211211 # The below are not specializations of one another, they are variants
212- (cpv , _flags .whl_pycp3x_abicp , (FLAGS .is_py_non_freethreaded ,)),
213- (cpv + "t" , _flags .whl_pycp3x_abicp , (FLAGS .is_py_freethreaded ,)),
212+ (cpv , _flags .whl_pycp3x_abicp , (FLAGS ._is_py_freethreaded_no ,)),
213+ (cpv + "t" , _flags .whl_pycp3x_abicp , (FLAGS ._is_py_freethreaded_yes ,)),
214214 ]:
215215 if (f , compatible_with ) in used_flags :
216216 # This should never happen as all of the different whls should have
@@ -237,12 +237,12 @@ def _dist_config_settings(*, suffix, plat_flag_values, python_version, **kwargs)
237237 for name , f , compatible_with in [
238238 ("py_none" , _flags .whl_plat , None ),
239239 ("py3_none" , _flags .whl_plat_py3 , None ),
240- ("py3_abi3" , _flags .whl_plat_py3_abi3 , (FLAGS .is_py_non_freethreaded ,)),
240+ ("py3_abi3" , _flags .whl_plat_py3_abi3 , (FLAGS ._is_py_freethreaded_no ,)),
241241 ("none" , _flags .whl_plat_pycp3x , None ),
242- ("abi3" , _flags .whl_plat_pycp3x_abi3 , (FLAGS .is_py_non_freethreaded ,)),
242+ ("abi3" , _flags .whl_plat_pycp3x_abi3 , (FLAGS ._is_py_freethreaded_no ,)),
243243 # The below are not specializations of one another, they are variants
244- (cpv , _flags .whl_plat_pycp3x_abicp , (FLAGS .is_py_non_freethreaded ,)),
245- (cpv + "t" , _flags .whl_plat_pycp3x_abicp , (FLAGS .is_py_freethreaded ,)),
244+ (cpv , _flags .whl_plat_pycp3x_abicp , (FLAGS ._is_py_freethreaded_no ,)),
245+ (cpv + "t" , _flags .whl_plat_pycp3x_abicp , (FLAGS ._is_py_freethreaded_yes ,)),
246246 ]:
247247 if (f , compatible_with ) in used_flags :
248248 # This should never happen as all of the different whls should have
@@ -329,7 +329,7 @@ def _dist_config_setting(*, name, compatible_with = None, native = native, **kwa
329329 compatible_with: {type}`tuple[Label]` A collection of config settings that are
330330 compatible with the given dist config setting. For example, if only
331331 non-freethreaded python builds are allowed, add
332- FLAGS.is_py_non_freethreaded here.
332+ FLAGS._is_py_freethreaded_no here.
333333 native (struct): The struct containing alias and config_setting rules
334334 to use for creating the objects. Can be overridden for unit tests
335335 reasons.
0 commit comments