Horizontal alignment for better visual effect.

svn: r19034
This commit is contained in:
Rob G. Healey 2012-03-09 23:12:16 +00:00
parent 028dbd80e2
commit f6b12cfc9a

View File

@ -45,9 +45,9 @@ def modules_check ():
try: try:
import gtk.glade import gtk.glade
except RuntimeError: except RuntimeError:
print 'Error importing GTK - is there no windowing environment available ?' print ("Error importing GTK - is there no windowing environment available ? \n"
print "We're going to ignore this error and live dangerously. Please make" "We're going to ignore this error and live dangerously. Please make \n"
print 'sure you have pygtk > 2.16 and gtk available!' "sure you have pygtk > 2.16 and gtk available!")
except ImportError: except ImportError:
raise raise
mod_list = [#'metakit', mod_list = [#'metakit',
@ -68,15 +68,15 @@ def modules_check ():
have_mod = True have_mod = True
if not have_mod: if not have_mod:
ok = False ok = False
print 'Error: %s is Python module is required to install %s' \ print ('Error: %s is Python module is required to install %s'
% (' or '.join(m), name.title()) % (' or '.join(m), name.title()))
else: else:
try: try:
exec('import %s' % m) exec('import %s' % m)
except ImportError: except ImportError:
ok = False ok = False
print 'Error: %s Python module is required to install %s' \ print ('Error: %s Python module is required to install %s'
% (m, name.title()) % (m, name.title()))
if not ok: if not ok:
sys.exit(1) sys.exit(1)
@ -233,7 +233,7 @@ def make_po ():
os.makedirs(directory) os.makedirs(directory)
if os.name == 'posix': if os.name == 'posix':
os.system('msgfmt %s/%s.po -o %s' % (PO_DIR, lang, mo)) os.system('msgfmt %s/%s.po -o %s' % (PO_DIR, lang, mo))
print directory print (directory)
def trans_files (): def trans_files ():
translation_files = [] translation_files = []
@ -360,35 +360,35 @@ else:
# message_extractors = po/POTFILES.in # message_extractors = po/POTFILES.in
result = setup( result = setup(
name = name, name = name,
version = version, version = version,
description = 'Gramps (Genealogical Research and Analysis Management Programming System)', description = 'Gramps (Genealogical Research and Analysis Management Programming System)',
author = '', author = 'Gramps Development Team',
author_email = '', author_email = 'don@gramps-project.org',
url = 'http://gramps-project.org', url = 'http://gramps-project.org',
license = 'GNU GPL v2', license = 'GNU GPL v2 or greater',
packages = ['gramps', packages = ['gramps',
'gramps.cli', 'gramps.cli',
'gramps.data', 'gramps.data',
'gramps.gen', 'gramps.gen',
'gramps.glade', 'gramps.glade',
'gramps.gui', 'gramps.gui',
'gramps.images', 'gramps.images',
'gramps.plugins', 'gramps.plugins',
'gramps.webapp', 'gramps.webapp',
], ],
package_dir = {'gramps' : 'src'}, package_dir = {'gramps' : 'src'},
package_data = gramps (), package_data = gramps (),
data_files = trans_files () + os_files(), data_files = trans_files () + os_files(),
platforms = ['Linux', 'FreeBSD', 'MacOS', 'Windows'], platforms = ['Linux', 'FreeBSD', 'MacOS', 'Windows'],
scripts = script, scripts = script,
requires = ['pygtk', 'pycairo', 'pygobject'], requires = ['pygtk', 'pycairo', 'pygobject'],
cmdclass={ cmdclass = {
'build': BuildData, 'build': BuildData,
'install_data': InstallData, 'install_data': InstallData,
'uninstall': Uninstall, 'uninstall': Uninstall,
'compile_catalog': babel.compile_catalog, 'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages, 'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog, 'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog}, 'update_catalog': babel.update_catalog},
) )