Exemple #1
0
def init_tools(architecture: str,
               dotnet_versions: str,
               channel: str,
               verbose: bool,
               install_dir: str = None) -> None:
    '''
    Install tools used by this repository into the tools folder.
    This function writes a semaphore file when tools have been successfully
    installed in order to avoid reinstalling them on every rerun.
    '''
    getLogger().info('Installing tools.')

    dotnet.install(architecture=architecture,
                   channels=[channel],
                   versions=dotnet_versions,
                   verbose=verbose,
                   install_dir=install_dir)
Exemple #2
0
def init_tools(architecture: str, frameworks: str, verbose: bool) -> None:
    '''
    Install tools used by this repository into the tools folder.
    This function writes a semaphore file when tools have been successfully
    installed in order to avoid reinstalling them on every rerun.
    '''
    getLogger().info('Installing tools.')
    channels = [
        micro_benchmarks.TargetFrameworkAction.get_channel(framework) or 'LTS'
        for framework in frameworks
    ]
    dotnet.install(
        architecture=architecture,
        channels=channels,
        verbose=verbose,
    )
    benchview.install()
Exemple #3
0
def init_tools(architecture: str, dotnet_versions: str,
               target_framework_monikers: list, verbose: bool) -> None:
    '''
    Install tools used by this repository into the tools folder.
    This function writes a semaphore file when tools have been successfully
    installed in order to avoid reinstalling them on every rerun.
    '''
    getLogger().info('Installing tools.')
    channels = [
        micro_benchmarks.FrameworkAction.get_channel(target_framework_moniker)
        for target_framework_moniker in target_framework_monikers
    ]
    dotnet.install(
        architecture=architecture,
        channels=channels,
        versions=dotnet_versions,
        verbose=verbose,
    )