def build_database():
 if snapshot:
  uc = upgrade_code_snapshot
 else:
  uc = upgrade_code
 if msilib.Win64:
  productsuffix = ' (64-bit)'
 else:
  productsuffix = ''
 db = msilib.init_database(('python-%s%s.msi' % (full_current_version, msilib.arch_ext)), schema, ProductName=(('Python ' + full_current_version) + productsuffix), ProductCode=product_code, ProductVersion=current_version, Manufacturer=u'Python Software Foundation', request_uac=True)
 msilib.change_sequence(sequence.InstallExecuteSequence, 'RemoveExistingProducts', 1510)
 msilib.add_tables(db, sequence)
 add_data(db, 'Property', [('UpgradeCode', uc), ('WhichUsers', 'ALL'), ('ProductLine', ('Python%s%s' % (major, minor)))])
 db.Commit()
 return db

def build_database ( ) : if snapshot : uc = upgrade_code_snapshot else : uc = upgrade_code if msilib . Win64 : productsuffix = ' (64-bit)' else : productsuffix = '' db = msilib . init_database ( ( 'python-%s%s.msi' % ( full_current_version , msilib . arch_ext ) ) , schema , ProductName = ( ( 'Python ' + full_current_version ) + productsuffix ) , ProductCode = product_code , ProductVersion = current_version , Manufacturer = u'Python Software Foundation' , request_uac = True ) msilib . change_sequence ( sequence . InstallExecuteSequence , 'RemoveExistingProducts' , 1510 ) msilib . add_tables ( db , sequence ) add_data ( db , 'Property' , [ ( 'UpgradeCode' , uc ) , ( 'WhichUsers' , 'ALL' ) , ( 'ProductLine' , ( 'Python%s%s' % ( major , minor ) ) ) ] ) db . Commit ( ) return db
generate an empty database .