Ejemplo n.º 1
0
def print_versions():
    print
    print '-=' * 38
    print db.DB_VERSION_STRING
    print 'bsddb.db.version():   %s' % (db.version(), )
    if db.version() >= (5, 0):
        print 'bsddb.db.full_version(): %s' % repr(db.full_version())
    print 'bsddb.db.__version__: %s' % db.__version__
    print 'bsddb.db.cvsid:       %s' % db.cvsid
    suffix = '__'
    print 'py module:            %s' % getattr(bsddb, '__file' + suffix)
    print 'extension module:     %s' % getattr(bsddb, '__file' + suffix)
    print 'python version:       %s' % sys.version
    print 'My pid:               %s' % os.getpid()
    print '-=' * 38
Ejemplo n.º 2
0
def print_versions():
    print
    print '-=' * 38
    print db.DB_VERSION_STRING
    print 'bsddb.db.version():   %s' % (db.version(),)
    if db.version() >= (5, 0):
        print 'bsddb.db.full_version(): %s' % repr(db.full_version())
    print 'bsddb.db.__version__: %s' % db.__version__
    print 'bsddb.db.cvsid:       %s' % db.cvsid
    suffix = '__'
    print 'py module:            %s' % getattr(bsddb, '__file' + suffix)
    print 'extension module:     %s' % getattr(bsddb, '__file' + suffix)
    print 'python version:       %s' % sys.version
    print 'My pid:               %s' % os.getpid()
    print '-=' * 38
Ejemplo n.º 3
0
def print_versions():
    print()
    print('-=' * 38)
    print(db.DB_VERSION_STRING)
    print('bsddb.db.version():   %s' % (db.version(), ))
    if db.version() >= (5, 0) :
        print('bsddb.db.full_version(): %s' %repr(db.full_version()))
    print('bsddb.db.__version__: %s' % db.__version__)
    print('bsddb.db.cvsid:       %s' % db.cvsid)

    # Workaround for allowing generating an EGGs as a ZIP files.
    suffix="__"
    print('py module:            %s' % getattr(bsddb, "__file"+suffix))
    print('extension module:     %s' % getattr(bsddb, "__file"+suffix))

    print('python version:       %s' % sys.version)
    print('My pid:               %s' % os.getpid())
    print('-=' * 38)
Ejemplo n.º 4
0
def print_versions():
    print
    print '-=' * 38
    print db.DB_VERSION_STRING
    print 'bsddb.db.version():   %s' % (db.version(), )
    if db.version() >= (5, 0):
        print 'bsddb.db.full_version(): %s' % repr(db.full_version())
    print 'bsddb.db.__version__: %s' % db.__version__
    print 'bsddb.db.cvsid:       %s' % db.cvsid

    # Workaround for allowing generating an EGGs as a ZIP files.
    suffix = "__"
    print 'py module:            %s' % getattr(bsddb, "__file" + suffix)
    print 'extension module:     %s' % getattr(bsddb, "__file" + suffix)

    print 'python version:       %s' % sys.version
    print 'My pid:               %s' % os.getpid()
    print '-=' * 38
Ejemplo n.º 5
0
def print_versions():
    print()
    print('-=' * 38)
    print(db.DB_VERSION_STRING)
    print('bsddb.db.version():   %s' % (db.version(), ))
    if db.version() >= (5, 0) :
        print('bsddb.db.full_version(): %s' %repr(db.full_version()))
    print('bsddb.db.__version__: %s' % db.__version__)

    # Workaround for allowing generating an EGGs as a ZIP files.
    suffix="__"
    print('py module:            %s' % getattr(bsddb, "__file"+suffix))
    print('extension module:     %s' % getattr(bsddb, "__file"+suffix))

    print('Test working dir:     %s' % get_test_path_prefix())
    import platform
    print('python version:       %s %s' % \
            (sys.version.replace("\r", "").replace("\n", ""), \
            platform.architecture()[0]))
    print('My pid:               %s' % os.getpid())
    print('-=' * 38)
Ejemplo n.º 6
0
def print_versions():
    print
    print '-=' * 38
    print db.DB_VERSION_STRING
    print 'bsddb.db.version():   %s' % (db.version(), )
    if db.version() >= (5, 0) :
        print 'bsddb.db.full_version(): %s' %repr(db.full_version())
    print 'bsddb.db.__version__: %s' % db.__version__

    # Workaround for allowing generating an EGGs as a ZIP files.
    suffix="__"
    print 'py module:            %s' % getattr(bsddb, "__file"+suffix)
    print 'extension module:     %s' % getattr(bsddb, "__file"+suffix)

    print 'Test working dir:     %s' % get_test_path_prefix()
    import platform
    print 'python version:       %s %s' % \
            (sys.version.replace("\r", "").replace("\n", ""), \
            platform.architecture()[0])
    print 'My pid:               %s' % os.getpid()
    print '-=' * 38