예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
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)
예제 #6
0
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)
예제 #7
0
파일: pipinfo.py 프로젝트: Erotemic/utool
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))