def hlpr_print_config()

in src/helperscripts/neuronsetuphelper.py [0:0]


def hlpr_print_config(nr_setup, neuron_version):
    str = ''
    str += '\n'
    str += '###########################################################################' + '\n'
    str += '# ' + nr_setup.action + ' ' + nr_setup.framework + ' '
    if (nr_setup.framework_version != 'latest') & (nr_setup.framework_version != None):
        str += '(' + nr_setup.framework_version + ')' + ' '
    if nr_setup.action == 'Update':
        str += 'from latest Neuron version ' + neuron_version
    else: 
        str += 'from Neuron version ' + neuron_version
    
    str += '\n# '

    str += 'On '
    if (nr_setup.os == 'ubuntu'):
        str += 'Ubuntu '
    elif (nr_setup.os == 'amazonlinux'):
        str += 'Amazon Linux '

    if (nr_setup.ami == 'dlami'):
       str += 'DLAMI'
    else:
        str += 'AMI'

    str += ' for '
    if (nr_setup.mode == 'compile'):
       str += 'compilation on compute instance'
    elif (nr_setup.mode == 'develop'):
       str += 'development on inf1 instance'
    elif (nr_setup.mode == 'deploy'):
       str += 'deployment on inf1 instance'
    str += '\n'
    str += '###########################################################################' + '\n'
    str += '\n'

    return str