//python/private/pypi:config_settings.bzl

The config_settings macro is used to create the config setting targets that can be used in the pkg_aliases macro for selecting the compatible repositories.

The config settings are of the form :is_cp3<minor_version><suffix>. Suffix is a normalized user provided value for the platform name. The goal of this macro is to ensure that we can incorporate the user provided config_setting targets to create our composite config_setting targets.

config_settings(python_versions=[], name=None, platform_config_settings={}, **kwargs)

Generate all of the pip config settings.

Args:
  • python_versions(default [])

    The list of python versions to configure config settings for.

  • name(default None)

    Currently unused.

  • platform_config_settings(dict[str, list[str]]) (default {})

    the constraint values to use instead of the default ones. Key are platform names (a human-friendly platform string). Values are lists of constraint_value label strings.

  • kwargs – Other args passed to the underlying implementations, such as native.