def pyrf_version(): import pyrf if LIB_DEP: libdep = None else: libdep = ut.get_dynlib_dependencies(pyrf.RF_CLIB._name) return module_stdinfo_dict(pyrf, libdep=libdep)
def pyhesaff_version(): import pyhesaff if LIB_DEP: libdep = None else: libdep = ut.get_dynlib_dependencies(pyhesaff.__LIB_FPATH__) return module_stdinfo_dict(pyhesaff, libdep=libdep)
def pyflann_version(): import pyflann if LIB_DEP: libdep = None else: libdep = ut.get_dynlib_dependencies(pyflann.flannlib._name) return module_stdinfo_dict(pyflann, libdep=libdep)
def pyflann_version(): from vtool_ibeis._pyflann_backend import pyflann as pyflann if LIB_DEP: libdep = None else: libdep = ut.get_dynlib_dependencies(pyflann.flannlib._name) return module_stdinfo_dict(pyflann, libdep=libdep)
def opencv_version(): import cv2 #print(cv2.getBuildInformation()) if LIB_DEP: libdep = None else: libdep = ut.get_dynlib_dependencies(cv2.__file__) return module_stdinfo_dict(cv2, libdep=libdep)
def vtool_version(): import vtool libdep = None if LIB_DEP: libdep = None else: try: libdep = ut.get_dynlib_dependencies(vtool.sver_c_wrapper.lib_fname) except Exception: pass return module_stdinfo_dict(vtool, libdep=libdep)
def print_module_info(modname): print('Checking modname = %r' % (modname,)) # Handles special cases for certain modules if modname.lower() == 'pillow': from PIL import Image import PIL pil_path = PIL.__path__ infodict = module_stdinfo_dict(Image, versionattr='PILLOW_VERSION', image_version=Image.VERSION, pil_path=pil_path) elif modname.lower() == 'pyqt4': from PyQt4 import QtCore infodict = module_stdinfo_dict(QtCore, 'PYQT_VERSION_STR') elif modname.lower() == 'pyqt5': from PyQt5 import QtCore infodict = module_stdinfo_dict(QtCore, 'PYQT_VERSION_STR') else: # Handle normal modules module = ut.import_modname(modname) infodict = module_stdinfo_dict(module) if any([infodict['__file__'].endswith(ext) for ext in ut.LIB_EXT_LIST]): infodict['libdep'] = ut.get_dynlib_dependencies(infodict['__file__']) return print(ut.repr4(infodict, strvals=True))