sltxpkg/dep.py
def _install_dependencies(idx: str, dep_dict: dict, target: str, first: bool = False):
    """Will install dependencies in an multi-threaded environment and may be called recursively

    Args:
        idx (str): The index to be run in (will start with 0)
        dep_dict (dict): Dependencies to fetch with this run
        target (str): The target directory for the fetch
        first (bool, optional): Flag for the initial run. Defaults to False.
    """
    if 'dependencies' not in dep_dict:
        return

    with futures.ThreadPoolExecutor(max_workers=sg.args.threads) as pool:
        runners = []
        for i, dep in enumerate(dep_dict['dependencies']):
            runners.append(pool.submit(install_dependency, dep, str(i) if first else idx + "." + str(i),
                                       dep_dict['dependencies'][dep], target))
        _finish_runners(runners)
Will install dependencies in an multi-threaded environment and may be called recursively

    Args:
        idx (str): The index to be run in (will start with 0)
        dep_dict (dict): Dependencies to fetch with this run
        target (str): The target directory for the fetch
        first (bool, optional): Flag for the initial run. Defaults to False.
    
Will install dependencies in an multi-threaded environment and may be called recursively
Will install dependencies in an multi - threaded environment and may be called recursively
def _install_dependencies(idx: str, dep_dict: dict, target: str, first: bool = False):
    if 'dependencies' not in dep_dict:
        return
    with futures.ThreadPoolExecutor(max_workers=sg.args.threads) as pool:
        runners = []
        for i, dep in enumerate(dep_dict['dependencies']):
            runners.append(pool.submit(install_dependency, dep, str(i) if first else idx + "." + str(i),
                                       dep_dict['dependencies'][dep], target))
        _finish_runners(runners)
def _install_dependencies ( idx : str , dep_dict : dict , target : str , first : bool = False ) : if 'dependencies' not in dep_dict : return with futures . ThreadPoolExecutor ( max_workers = sg . args . threads ) as pool : runners = [ ] for i , dep in enumerate ( dep_dict [ 'dependencies' ] ) : runners . append ( pool . submit ( install_dependency , dep , str ( i ) if first else idx + "." + str ( i ) , dep_dict [ 'dependencies' ] [ dep ] , target ) ) _finish_runners ( runners )
Will install dependencies in an multi-threaded environment and may be called recursively
Will install dependencies in an multi - threaded environment and may be called recursively
"""Will install dependencies in an multi-threaded environment and may be called recursively

    Args:
        idx (str): The index to be run in (will start with 0)
        dep_dict (dict): Dependencies to fetch with this run
        target (str): The target directory for the fetch
        first (bool, optional): Flag for the initial run. Defaults to False.
    """
idx
str
The index to be run in (will start with 0)
The index to be run in ( will start with 0 )
dep_dict
dict
Dependencies to fetch with this run
Dependencies to fetch with this run
target
str
The target directory for the fetch
The target directory for the fetch
first
bool
Flag for the initial run. Defaults to False.
Flag for the initial run . Defaults to False .
False