Example #1
0
def show_version():
	# Python version and library versions
	swrite('\n=== VERSIONS ===\n\n')
	# Python version
	swrite("Python version: " + version + "\n\n")
	# Give information on the version installed
	swrite("Versions of libraries installed:\n")
	map(swrite, sorted(["%s==%s\n" % (i.key, i.version) for i in lib()]))
Example #2
0
def show_version():
    # Python version and library versions
    swrite('\n=== VERSIONS ===\n\n')
    # Python version
    swrite("Python version: " + version + "\n\n")
    # Give information on the version installed
    swrite("Versions of libraries installed:\n")
    map(swrite, sorted(["%s==%s\n" % (i.key, i.version) for i in lib()]))
Example #3
0
def show_version():
    # Python version and library versions
    logger.info('=== VERSIONS ===')
    # Python version
    logger.info("Python version: " + version)
    # Give information on the version installed
    logger.info("Versions of libraries installed:")
    for line in sorted(["%s==%s" % (i.key, i.version) for i in lib()]):
        logger.info(line)
Example #4
0
def show_version(scoring_version):
	''' Python version and library versions '''
	swrite('\n=== VERSIONS ===\n\n')
 	# Scoring program version
	swrite("Scoring program version: " + str(scoring_version) + "\n\n")
	# Python version
	swrite("Python version: " + version + "\n\n")
	# Give information on the version installed
	swrite("Versions of libraries installed:\n")
	map(swrite, sorted(["%s==%s\n" % (i.key, i.version) for i in lib()]))
Example #5
0
def show_version(scoring_version):
    ''' Python version and library versions '''
    logger.info('=== VERSIONS ===')
    # Scoring program version
    logger.info("Scoring program version: " + str(scoring_version) + "")
    # Python version
    logger.info("Python version: " + version)
    # Give information on the version installed
    logger.info("Versions of libraries installed:")
    map(logger.info, sorted(["%s==%s" % (i.key, i.version) for i in lib()]))