def print_versions(): """Print all the versions of software that Blaze relies on.""" import sys, platform import numpy as np import dynd import datashape import blz print("-=" * 38) print("Blaze version: %s" % __version__) print("Datashape version: %s" % datashape.__version__) print("NumPy version: %s" % np.__version__) print("DyND version: %s / LibDyND %s" % (dynd.__version__, dynd.__libdynd_version__)) print("BLZ version: %s" % blz.__version__) print("Blosc version: %s (%s)" % blz.blosc_version()) print("Python version: %s" % sys.version) (sysname, nodename, release, version, machine, processor) = \ platform.uname() print("Platform: %s-%s-%s (%s)" % (sysname, release, machine, version)) if sysname == "Linux": print("Linux dist: %s" % " ".join(platform.linux_distribution()[:-1])) if not processor: processor = "not recognized" print("Processor: %s" % processor) print("Byte-ordering: %s" % sys.byteorder) print("Detected cores: %s" % blz.detect_number_of_cores()) print("-=" * 38)
def print_versions(): """Print all the versions of software that BLZ relies on.""" print("-=" * 38) print("BLZ version: %s" % blz.__version__) print("NumPy version: %s" % numpy.__version__) tinfo = blz.blosc_version() blosc_cnames = blz.blosc_compressor_list() print("Blosc version: %s (%s)" % (tinfo[0], tinfo[1])) print("Blosc compressors: %s" % (blosc_cnames,)) if blz.numexpr_here: print("Numexpr version: %s" % blz.numexpr.__version__) else: print("Numexpr version: not available " "(version >= %s not detected)" % blz.min_numexpr_version) print("Python version: %s" % sys.version) if os.name == "posix": (sysname, nodename, release, version, machine) = os.uname() print("Platform: %s-%s" % (sys.platform, machine)) print("Byte-ordering: %s" % sys.byteorder) print("Detected cores: %s" % blz.detect_number_of_cores()) print("-=" * 38)