scripts/deps.py
def split_first_level(dependency):
    """
    Internal function to split nested dependencies.
    :param dependency:
    :return:
    """
    dependencies = []
    beginning = 0
    level = 0
    for i in range(len(dependency)):
        if dependency[i] == ',' and level == 0:
            dependencies.append(dependency[beginning:i].strip())
            beginning = i + 1
        elif dependency[i] == '{':
            level += 1
        elif dependency[i] == '}':
            level -= 1
    dependencies.append(dependency[beginning:].strip())
    return dependencies

    Internal function to split nested dependencies.
    :param dependency:
    :return:
    
Internal function to split nested dependencies.
Internal function to split nested dependencies .
def split_first_level(dependency):
    dependencies = []
    beginning = 0
    level = 0
    for i in range(len(dependency)):
        if dependency[i] == ',' and level == 0:
            dependencies.append(dependency[beginning:i].strip())
            beginning = i + 1
        elif dependency[i] == '{':
            level += 1
        elif dependency[i] == '}':
            level -= 1
    dependencies.append(dependency[beginning:].strip())
    return dependencies
def split_first_level ( dependency ) : dependencies = [ ] beginning = 0 level = 0 for i in range ( len ( dependency ) ) : if dependency [ i ] == ',' and level == 0 : dependencies . append ( dependency [ beginning : i ] . strip ( ) ) beginning = i + 1 elif dependency [ i ] == '{' : level += 1 elif dependency [ i ] == '}' : level -= 1 dependencies . append ( dependency [ beginning : ] . strip ( ) ) return dependencies
Internal function to split nested dependencies.
Internal function to split nested dependencies .
"""
    Internal function to split nested dependencies.
    :param dependency:
    :return:
    """
None
dependency
None