Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PY32_64 = struct.calcsize("P") * 8 # yields 32 or 64, depending on 32 or 64 bit Python
VERSION = {}
# VERSION.update({'python_long': sys.version})
VERSION.update({'python': ".".join(map(str, sys.version_info[:3]))
+ " (" + str(PY32_64) + " Bit)"})
VERSION.update({'matplotlib': VERSION_MPL})
VERSION.update({'pyqt': QT_VERSION_STR})
VERSION.update({'numpy': VERSION_NP})
VERSION.update({'scipy': VERSION_SCI})
# ================ Optional Modules ============================
try:
from cycler import __version__ as VERSION_CYCLER
VERSION.update({'cycler': VERSION_CYCLER})
except ImportError:
VERSION.update({'cycler': None})
try:
from mayavi import __version__ as VERSION_MAYAVI
VERSION.update({'mayavi': VERSION_MAYAVI})
except ImportError:
pass
try:
import migen
VERSION_MIGEN = "installed"
except (ImportError,SyntaxError):
VERSION_MIGEN = None
VERSION.update({'migen': VERSION_MIGEN})
try: