# Path: cpt/tools.py
# def split_colon_env(varname):
#     if os.getenv(varname) is None:
#         return None
#     if os.getenv(varname).strip() == "":
#         return []
#     return [a.strip() for a in list(filter(None, os.getenv(varname, "").split(",")))]
# 
# def transform_list_options_to_dict(list_options):
#     assert isinstance(list_options, list)
#     dict_options = {}
#     for option in list_options:
#         if '=' not in option:
#             raise RuntimeError("Option %s does not contain '='" % option)
#         option_obj = option.split('=')
#         dict_options[option_obj[0]] = option_obj[1]
#     return dict_options


import copy
import os
from collections import namedtuple
from conans.model.ref import ConanFileReference
from conans.model.version import Version
from cpt.tools import split_colon_env, transform_list_options_to_dict

        if self._visual_versions is not None:
            self._visual_runtimes = visual_runtimes or split_colon_env("CONAN_VISUAL_RUNTIMES")
            if self._visual_runtimes is None:
                self._visual_runtimes = default_visual_runtimes

        self._apple_clang_versions = apple_clang_versions or split_colon_env("CONAN_APPLE_CLANG_VERSIONS")

        if self._apple_clang_versions is None:
            self._apple_clang_versions = default_apple_clang_versions

        self._mingw_configurations = mingw_configurations or get_mingw_config_from_env()

        _default_archs = ["x86_64"] if self._os_name == "Darwin" else default_archs

        self._archs = archs or split_colon_env("CONAN_ARCHS")
        if self._archs is None:
            self._archs = _default_archs

        self._build_types = build_types or split_colon_env("CONAN_BUILD_TYPES")
        if self._build_types is None:
            self._build_types = default_build_types

        self._cppstds = cppstds or split_colon_env("CONAN_CPPSTDS")
        if self._cppstds is None:
            self._cppstds = default_cppstds

        options = options or split_colon_env("CONAN_OPTIONS")
        if options is None:
            options = []

# Path: cpt/tools.py
# def split_colon_env(varname):
#     if os.getenv(varname) is None:
#         return None
#     if os.getenv(varname).strip() == "":
#         return []
#     return [a.strip() for a in list(filter(None, os.getenv(varname, "").split(",")))]
# 
# def transform_list_options_to_dict(list_options):
#     assert isinstance(list_options, list)
#     dict_options = {}
#     for option in list_options:
#         if '=' not in option:
#             raise RuntimeError("Option %s does not contain '='" % option)
#         option_obj = option.split('=')
#         dict_options[option_obj[0]] = option_obj[1]
#     return dict_options


# Path: cpt/builds_generator.py
import copy
import os
from collections import namedtuple
from conans.model.ref import ConanFileReference
from conans.model.version import Version
from cpt.tools import split_colon_env, transform_list_options_to_dict


        if self._visual_versions is not None:
            self._visual_runtimes = visual_runtimes or split_colon_env("CONAN_VISUAL_RUNTIMES")
            if self._visual_runtimes is None:
                self._visual_runtimes = default_visual_runtimes

        self._apple_clang_versions = apple_clang_versions or split_colon_env("CONAN_APPLE_CLANG_VERSIONS")

        if self._apple_clang_versions is None:
            self._apple_clang_versions = default_apple_clang_versions

        self._mingw_configurations = mingw_configurations or get_mingw_config_from_env()

        _default_archs = ["x86_64"] if self._os_name == "Darwin" else default_archs

        self._archs = archs or split_colon_env("CONAN_ARCHS")
        if self._archs is None:
            self._archs = _default_archs

        self._build_types = build_types or split_colon_env("CONAN_BUILD_TYPES")
        if self._build_types is None:
            self._build_types = default_build_types

        self._cppstds = cppstds or split_colon_env("CONAN_CPPSTDS")
        if self._cppstds is None:
            self._cppstds = default_cppstds

        options = options or split_colon_env("CONAN_OPTIONS")
        if options is None:
            options = []

        self._options = transform_list_options_to_dict(options)