2012-05-20 04:26:19 +05:30
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2012 Nick Hall
|
2012-09-30 16:00:08 +05:30
|
|
|
# Copyright (C) 2012 Rob G. Healey
|
|
|
|
# Copyright (C) 2012 Benny Malengier
|
2012-05-20 04:26:19 +05:30
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
'''
|
|
|
|
Gramps distutils module.
|
|
|
|
'''
|
2012-09-30 16:00:08 +05:30
|
|
|
|
|
|
|
#check python version first
|
|
|
|
import sys
|
|
|
|
|
2012-11-09 20:57:03 +05:30
|
|
|
|
|
|
|
if (sys.version_info < (2, 7) or ( (3,0) <= sys.version_info < (3, 2))):
|
|
|
|
raise SystemExit("""Gramps requires Python 2.7 or later, or Python 3.2 or later.""")
|
2012-09-30 16:00:08 +05:30
|
|
|
|
2012-05-20 18:51:47 +05:30
|
|
|
from distutils import log
|
2012-05-20 04:26:19 +05:30
|
|
|
from distutils.core import setup
|
|
|
|
from distutils.util import convert_path, newer
|
|
|
|
from distutils.command.build import build as _build
|
|
|
|
from distutils.command.install import install as _install
|
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
import codecs
|
2012-11-17 22:14:45 +05:30
|
|
|
import subprocess
|
2012-11-18 23:01:39 +05:30
|
|
|
if sys.version_info[0] < 3:
|
|
|
|
import commands
|
2012-05-20 19:20:17 +05:30
|
|
|
from stat import ST_MODE
|
2012-05-20 13:20:25 +05:30
|
|
|
|
2013-01-05 05:16:24 +05:30
|
|
|
VERSION = '4.0.0'
|
2012-10-09 01:31:16 +05:30
|
|
|
ALL_LINGUAS = ('bg', 'ca', 'cs', 'da', 'de', 'el', 'en_GB', 'es', 'fi', 'fr', 'he',
|
2012-05-20 04:26:19 +05:30
|
|
|
'hr', 'hu', 'it', 'ja', 'lt', 'nb', 'nl', 'nn', 'pl', 'pt_BR',
|
|
|
|
'pt_PT', 'ru', 'sk', 'sl', 'sq', 'sv', 'uk', 'vi', 'zh_CN')
|
2013-01-05 05:16:24 +05:30
|
|
|
INTLTOOL_FILES = ('data/tips.xml', 'gramps/plugins/lib/holidays.xml')
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
def intltool_version():
|
|
|
|
'''
|
|
|
|
Return the version of intltool as a tuple.
|
|
|
|
'''
|
|
|
|
cmd = 'intltool-update --version | head -1 | cut -d" " -f3'
|
2012-11-18 23:01:39 +05:30
|
|
|
if sys.version_info[0] < 3:
|
|
|
|
retcode, version_str = commands.getstatusoutput(cmd)
|
|
|
|
else:
|
|
|
|
retcode, version_str = subprocess.getstatusoutput(cmd)
|
2012-05-20 04:26:19 +05:30
|
|
|
if retcode != 0:
|
|
|
|
return None
|
|
|
|
else:
|
|
|
|
return tuple([int(num) for num in version_str.split('.')])
|
|
|
|
|
|
|
|
def substitute_variables(filename_in, filename_out, subst_vars):
|
|
|
|
'''
|
|
|
|
Substitute variables in a file.
|
|
|
|
'''
|
|
|
|
f_in = codecs.open(filename_in, encoding='utf-8')
|
|
|
|
f_out = codecs.open(filename_out, encoding='utf-8', mode='w')
|
|
|
|
for line in f_in:
|
|
|
|
for variable, substitution in subst_vars:
|
|
|
|
line = line.replace(variable, substitution)
|
|
|
|
f_out.write(line)
|
|
|
|
f_in.close()
|
|
|
|
f_out.close()
|
|
|
|
|
|
|
|
def build_trans(build_cmd):
|
|
|
|
'''
|
|
|
|
Translate the language files into gramps.mo
|
|
|
|
'''
|
|
|
|
data_files = build_cmd.distribution.data_files
|
|
|
|
for lang in ALL_LINGUAS:
|
|
|
|
po_file = os.path.join('po', lang + '.po')
|
2012-12-31 15:14:49 +05:30
|
|
|
mo_file = os.path.join(build_cmd.build_base, 'mo', lang, 'LC_MESSAGES',
|
|
|
|
'gramps.mo')
|
|
|
|
mo_file_unix = (build_cmd.build_base + '/mo/' + lang +
|
|
|
|
'/LC_MESSAGES/gramps.mo')
|
2012-05-20 04:26:19 +05:30
|
|
|
mo_dir = os.path.dirname(mo_file)
|
|
|
|
if not(os.path.isdir(mo_dir) or os.path.islink(mo_dir)):
|
|
|
|
os.makedirs(mo_dir)
|
|
|
|
|
|
|
|
if newer(po_file, mo_file):
|
|
|
|
cmd = 'msgfmt %s -o %s' % (po_file, mo_file)
|
|
|
|
if os.system(cmd) != 0:
|
2012-12-20 22:10:23 +05:30
|
|
|
os.remove(mo_file)
|
2012-05-20 04:26:19 +05:30
|
|
|
msg = 'ERROR: Building language translation files failed.'
|
2012-12-20 22:10:23 +05:30
|
|
|
ask = msg + '\n Continue building y/n [n] '
|
|
|
|
if sys.version_info[0] < 3:
|
|
|
|
reply = raw_input(ask)
|
|
|
|
else:
|
|
|
|
reply = input(ask)
|
|
|
|
if reply in ['n', 'N']:
|
|
|
|
raise SystemExit(msg)
|
2012-05-20 04:26:19 +05:30
|
|
|
|
2012-09-30 16:00:08 +05:30
|
|
|
#linux specific piece:
|
2012-11-09 22:18:09 +05:30
|
|
|
target = 'share/locale/' + lang + '/LC_MESSAGES'
|
|
|
|
data_files.append((target, [mo_file_unix]))
|
2012-05-20 04:26:19 +05:30
|
|
|
|
2012-05-20 18:51:47 +05:30
|
|
|
log.info('Compiling %s >> %s.', po_file, target)
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
def build_man(build_cmd):
|
|
|
|
'''
|
|
|
|
Compresses Gramps manual files
|
|
|
|
'''
|
|
|
|
data_files = build_cmd.distribution.data_files
|
|
|
|
for man_dir, dirs, files in os.walk(os.path.join('data', 'man')):
|
|
|
|
if 'gramps.1.in' in files:
|
|
|
|
filename = os.path.join(man_dir, 'gramps.1.in')
|
|
|
|
newdir = os.path.join(build_cmd.build_base, man_dir)
|
|
|
|
if not(os.path.isdir(newdir) or os.path.islink(newdir)):
|
|
|
|
os.makedirs(newdir)
|
|
|
|
|
|
|
|
newfile = os.path.join(newdir, 'gramps.1')
|
2012-11-17 22:14:45 +05:30
|
|
|
subst_vars = (('@VERSION@', VERSION), )
|
2012-05-20 04:26:19 +05:30
|
|
|
substitute_variables(filename, newfile, subst_vars)
|
|
|
|
|
|
|
|
import gzip
|
|
|
|
man_file_gz = os.path.join(newdir, 'gramps.1.gz')
|
|
|
|
if os.path.exists(man_file_gz):
|
|
|
|
if newer(newfile, man_file_gz):
|
|
|
|
os.remove(man_file_gz)
|
|
|
|
else:
|
|
|
|
filename = False
|
|
|
|
os.remove(newfile)
|
|
|
|
|
2012-11-09 22:18:09 +05:30
|
|
|
if filename:
|
2012-05-20 04:26:19 +05:30
|
|
|
f_in = open(newfile, 'rb')
|
|
|
|
f_out = gzip.open(man_file_gz, 'wb')
|
|
|
|
f_out.writelines(f_in)
|
|
|
|
f_out.close()
|
|
|
|
f_in.close()
|
|
|
|
|
|
|
|
os.remove(newfile)
|
|
|
|
filename = False
|
|
|
|
|
|
|
|
lang = man_dir[8:]
|
2012-11-09 22:18:09 +05:30
|
|
|
src = build_cmd.build_base + '/data/man/' + lang + '/gramps.1.gz'
|
|
|
|
target = 'share/man/' + lang + '/man1'
|
2012-05-20 04:26:19 +05:30
|
|
|
data_files.append((target, [src]))
|
|
|
|
|
2012-05-20 18:51:47 +05:30
|
|
|
log.info('Compiling %s >> %s.', src, target)
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
def build_intl(build_cmd):
|
|
|
|
'''
|
|
|
|
Merge translation files into desktop and mime files
|
|
|
|
'''
|
|
|
|
if intltool_version() < (0, 25, 0):
|
|
|
|
return
|
|
|
|
data_files = build_cmd.distribution.data_files
|
|
|
|
base = build_cmd.build_base
|
|
|
|
|
2012-11-09 22:18:09 +05:30
|
|
|
merge_files = (('data/gramps.desktop', 'share/applications', '-d'),
|
|
|
|
('data/gramps.keys', 'share/mime-info', '-k'),
|
|
|
|
('data/gramps.xml', 'share/mime/packages', '-x'))
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
for filename, target, option in merge_files:
|
2012-11-09 22:18:09 +05:30
|
|
|
filenamelocal = convert_path(filename)
|
|
|
|
newfile = os.path.join(base, filenamelocal)
|
2012-05-20 04:26:19 +05:30
|
|
|
newdir = os.path.dirname(newfile)
|
|
|
|
if not(os.path.isdir(newdir) or os.path.islink(newdir)):
|
|
|
|
os.makedirs(newdir)
|
2012-11-09 22:18:09 +05:30
|
|
|
merge(filenamelocal + '.in', newfile, option)
|
|
|
|
data_files.append((target, [base + '/' + filename]))
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
for filename in INTLTOOL_FILES:
|
|
|
|
filename = convert_path(filename)
|
2012-09-30 16:00:08 +05:30
|
|
|
merge(filename + '.in', filename, '-x', po_dir=os.sep + 'tmp',
|
|
|
|
cache=False)
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
def merge(in_file, out_file, option, po_dir='po', cache=True):
|
|
|
|
'''
|
|
|
|
Run the intltool-merge command.
|
|
|
|
'''
|
|
|
|
option += ' -u'
|
|
|
|
if cache:
|
|
|
|
cache_file = os.path.join('po', '.intltool-merge-cache')
|
|
|
|
option += ' -c ' + cache_file
|
|
|
|
|
|
|
|
if (not os.path.exists(out_file) and os.path.exists(in_file)):
|
|
|
|
cmd = (('LC_ALL=C intltool-merge %(opt)s %(po_dir)s %(in_file)s '
|
|
|
|
'%(out_file)s') %
|
|
|
|
{'opt' : option,
|
|
|
|
'po_dir' : po_dir,
|
|
|
|
'in_file' : in_file,
|
|
|
|
'out_file' : out_file})
|
|
|
|
if os.system(cmd) != 0:
|
|
|
|
msg = ('ERROR: %s was not merged into the translation files!\n' %
|
|
|
|
out_file)
|
|
|
|
raise SystemExit(msg)
|
|
|
|
|
|
|
|
def install_template(install_cmd):
|
|
|
|
'''
|
|
|
|
Pre-install hook to populate template files.
|
|
|
|
'''
|
|
|
|
build_scripts = os.path.join(install_cmd.build_base, 'scripts')
|
|
|
|
if not(os.path.isdir(build_scripts) or os.path.islink(build_scripts)):
|
|
|
|
os.makedirs(build_scripts)
|
|
|
|
data_files = install_cmd.distribution.data_files
|
|
|
|
write_gramps_script(install_cmd, build_scripts)
|
2012-11-09 22:18:09 +05:30
|
|
|
data_files.append(('bin', [install_cmd.build_base + '/scripts/gramps']))
|
2012-05-20 04:26:19 +05:30
|
|
|
write_const_py(install_cmd)
|
|
|
|
|
|
|
|
def write_gramps_script(install_cmd, build_scripts):
|
|
|
|
'''
|
|
|
|
Write the build/scripts/gramps file.
|
|
|
|
'''
|
|
|
|
filename = os.path.join(build_scripts, 'gramps')
|
|
|
|
f_out = open(filename, 'w')
|
2012-10-12 16:29:16 +05:30
|
|
|
f_out.write('#!/usr/bin/env python\n')
|
|
|
|
f_out.write('import gramps.grampsapp as app\n')
|
|
|
|
f_out.write('app.main()\n')
|
2012-05-20 04:26:19 +05:30
|
|
|
f_out.close()
|
|
|
|
|
2012-05-20 19:20:17 +05:30
|
|
|
if os.name == 'posix':
|
|
|
|
# set read and execute bits
|
2012-11-17 22:14:45 +05:30
|
|
|
mode = ((os.stat(filename).st_mode) | 0o555) & 0o7777
|
2012-05-20 19:20:17 +05:30
|
|
|
log.info('changing mode of %s to %o', filename, mode)
|
|
|
|
os.chmod(filename, mode)
|
2012-05-20 13:20:25 +05:30
|
|
|
|
2012-12-31 15:14:49 +05:30
|
|
|
def write_const_py(command):
|
2012-05-20 04:26:19 +05:30
|
|
|
'''
|
|
|
|
Write the const.py file.
|
|
|
|
'''
|
2012-09-30 17:49:14 +05:30
|
|
|
const_py_in = os.path.join('gramps', 'gen', 'const.py.in')
|
|
|
|
const_py = os.path.join('gramps', 'gen', 'const.py')
|
2012-12-31 15:14:49 +05:30
|
|
|
if hasattr(command, 'install_data'):
|
2012-09-30 16:00:08 +05:30
|
|
|
#during install
|
2013-01-05 05:16:24 +05:30
|
|
|
share_dir = os.path.join(command.install_data, 'share')
|
2012-12-31 15:14:49 +05:30
|
|
|
locale_dir = os.path.join(command.install_data, 'share', 'locale')
|
2012-09-30 16:00:08 +05:30
|
|
|
else:
|
|
|
|
#in build
|
2012-12-31 23:48:20 +05:30
|
|
|
if 'install' in command.distribution.command_obj:
|
2012-12-31 15:14:49 +05:30
|
|
|
# Prevent overwriting version created during install
|
|
|
|
return
|
2013-01-05 05:16:24 +05:30
|
|
|
share_dir = ''
|
2012-12-31 15:14:49 +05:30
|
|
|
locale_dir = os.path.join(command.build_base, 'mo')
|
2012-05-20 04:26:19 +05:30
|
|
|
|
2012-11-17 22:14:45 +05:30
|
|
|
subst_vars = (('@VERSIONSTRING@', VERSION),
|
2013-01-05 05:16:24 +05:30
|
|
|
('@SHARE_DIR@', share_dir),
|
2012-12-31 15:14:49 +05:30
|
|
|
('@LOCALE_DIR@', locale_dir))
|
2012-05-20 04:26:19 +05:30
|
|
|
|
|
|
|
substitute_variables(const_py_in, const_py, subst_vars)
|
|
|
|
|
|
|
|
def update_posix():
|
|
|
|
'''
|
|
|
|
post-hook to update Linux systems after install
|
|
|
|
|
|
|
|
these commands are not system stoppers, so there is no reason for
|
|
|
|
system exit on failure to run.
|
|
|
|
'''
|
|
|
|
if os.name != 'posix':
|
|
|
|
return
|
|
|
|
# these commands will be ran on a Unix/ Linux system after install only...
|
|
|
|
for cmd, options in (
|
|
|
|
('ldconfig', ''),
|
|
|
|
('update-desktop-database', '&> /dev/null'),
|
|
|
|
('update-mime-database', '/usr/share/mime &> /dev/null'),
|
|
|
|
('gtk-update-icon-cache', '--quiet /usr/share/icons/hicolor')):
|
|
|
|
sys_cmd = ('%(command)s %(opts)s') % {
|
|
|
|
'command' : cmd, 'opts' : options}
|
|
|
|
os.system(sys_cmd)
|
|
|
|
|
|
|
|
class build(_build):
|
|
|
|
"""Custom build command."""
|
|
|
|
def run(self):
|
|
|
|
build_trans(self)
|
|
|
|
build_man(self)
|
|
|
|
build_intl(self)
|
2012-09-30 16:00:08 +05:30
|
|
|
write_const_py(self)
|
2012-05-20 04:26:19 +05:30
|
|
|
_build.run(self)
|
|
|
|
|
|
|
|
class install(_install):
|
|
|
|
"""Custom install command."""
|
|
|
|
_install.user_options.append(('enable-packager-mode', None,
|
|
|
|
'disable post-installation mime type processing'))
|
|
|
|
_install.boolean_options.append('enable-packager-mode')
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
_install.initialize_options(self)
|
|
|
|
self.enable_packager_mode = False
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
install_template(self)
|
|
|
|
_install.run(self)
|
|
|
|
if self.enable_packager_mode:
|
2012-05-20 18:51:47 +05:30
|
|
|
log.warn('WARNING: Packager mode enabled. Post-installation mime '
|
2012-05-20 04:26:19 +05:30
|
|
|
'type processing was not run.')
|
|
|
|
else:
|
|
|
|
update_posix()
|
|
|
|
|
2012-06-09 07:11:55 +05:30
|
|
|
DOC_FILES = ['AUTHORS', 'COPYING', 'FAQ', 'INSTALL', 'LICENSE', 'NEWS',
|
|
|
|
'README', 'TODO']
|
2012-05-20 04:26:19 +05:30
|
|
|
GEDCOM_FILES = glob.glob(os.path.join('example', 'gedcom', '*.*'))
|
|
|
|
GRAMPS_FILES = glob.glob(os.path.join('example', 'gramps', '*.*'))
|
|
|
|
PNG_FILES = glob.glob(os.path.join('data', '*.png'))
|
|
|
|
SVG_FILES = glob.glob(os.path.join('data', '*.svg'))
|
2013-01-05 05:16:24 +05:30
|
|
|
XML_FILES = glob.glob(os.path.join('data', '*.xml'))
|
|
|
|
IMAGE_FILES = glob.glob(os.path.join('images', '*.*'))
|
|
|
|
IMAGE_16 = glob.glob(os.path.join('images', '16x16', '*.png'))
|
|
|
|
IMAGE_22 = glob.glob(os.path.join('images', '22x22', '*.png'))
|
|
|
|
IMAGE_48 = glob.glob(os.path.join('images', '48x48', '*.png'))
|
|
|
|
IMAGE_SC = glob.glob(os.path.join('images', 'scalable', '*.svg'))
|
|
|
|
|
|
|
|
data_list = ['gui/glade/*.glade']
|
2012-09-30 16:00:08 +05:30
|
|
|
# add all subdirs of plugin with glade:
|
2012-09-30 17:49:14 +05:30
|
|
|
basedir = os.path.join('gramps', 'plugins')
|
2012-09-30 16:00:08 +05:30
|
|
|
for (dirpath, dirnames, filenames) in os.walk(basedir):
|
|
|
|
root, subdir = os.path.split(dirpath)
|
|
|
|
if subdir.startswith("."):
|
|
|
|
dirnames[:] = []
|
|
|
|
continue
|
|
|
|
for dirname in dirnames:
|
|
|
|
# Skip hidden and system directories:
|
|
|
|
if dirname.startswith("."):
|
|
|
|
dirnames.remove(dirname)
|
2012-09-30 17:49:14 +05:30
|
|
|
#we add to data_list so glade , xml, files are found, we don't need the gramps/ part
|
2012-11-17 20:24:08 +05:30
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.glade')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.xml')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.png')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.svg')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.css')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.html')
|
|
|
|
data_list.append(dirpath[7:] + '/' + dirname + '/*.js')
|
2012-11-09 20:57:03 +05:30
|
|
|
data_list.append('plugins/webstuff/images/*.gif')
|
|
|
|
data_list.append('plugins/webstuff/images/*.ico')
|
2012-09-30 16:00:08 +05:30
|
|
|
|
2012-05-20 04:26:19 +05:30
|
|
|
setup(name = 'gramps',
|
|
|
|
description = ('Gramps (Genealogical Research and Analysis Management '
|
|
|
|
'Programming System)'),
|
|
|
|
long_description = ('Gramps (Genealogical Research and Analysis '
|
2012-09-30 16:00:08 +05:30
|
|
|
'Management Programming System) is a full featured '
|
2012-05-20 04:26:19 +05:30
|
|
|
'genealogy program supporting a Python based plugin '
|
|
|
|
'system.'),
|
|
|
|
version = VERSION,
|
|
|
|
author = 'Donald N. Allingham',
|
|
|
|
author_email = 'don@gramps-project.org',
|
|
|
|
maintainer = 'Gramps Development Team',
|
|
|
|
maintainer_email = 'benny.malengier@gmail.com',
|
|
|
|
url = 'http://gramps-project.org',
|
|
|
|
license = 'GPL v2 or greater',
|
|
|
|
platforms = ['FreeBSD', 'Linux', 'MacOS', 'Windows'],
|
|
|
|
cmdclass = {'build': build, 'install': install},
|
2012-05-30 05:18:28 +05:30
|
|
|
packages = ['gramps',
|
|
|
|
'gramps.cli',
|
|
|
|
'gramps.cli.plug',
|
2012-07-17 01:01:25 +05:30
|
|
|
'gramps.gen.utils.docgen',
|
2012-05-30 05:18:28 +05:30
|
|
|
'gramps.gen',
|
|
|
|
'gramps.gen.datehandler',
|
|
|
|
'gramps.gen.db',
|
|
|
|
'gramps.gen.display',
|
|
|
|
'gramps.gen.filters',
|
|
|
|
'gramps.gen.filters.rules',
|
|
|
|
'gramps.gen.filters.rules.citation',
|
|
|
|
'gramps.gen.filters.rules.event',
|
|
|
|
'gramps.gen.filters.rules.family',
|
|
|
|
'gramps.gen.filters.rules.media',
|
|
|
|
'gramps.gen.filters.rules.note',
|
|
|
|
'gramps.gen.filters.rules.person',
|
|
|
|
'gramps.gen.filters.rules.place',
|
|
|
|
'gramps.gen.filters.rules.repository',
|
|
|
|
'gramps.gen.filters.rules.source',
|
|
|
|
'gramps.gen.lib',
|
|
|
|
'gramps.gen.merge',
|
|
|
|
'gramps.gen.mime',
|
|
|
|
'gramps.gen.plug',
|
|
|
|
'gramps.gen.plug.docbackend',
|
|
|
|
'gramps.gen.plug.docgen',
|
|
|
|
'gramps.gen.plug.menu',
|
|
|
|
'gramps.gen.plug.report',
|
|
|
|
'gramps.gen.proxy',
|
2012-06-01 05:28:31 +05:30
|
|
|
'gramps.gen.simple',
|
2012-05-30 05:18:28 +05:30
|
|
|
'gramps.gen.utils',
|
2012-09-30 16:00:08 +05:30
|
|
|
'gramps.gen.utils.docgen',
|
2012-05-30 05:18:28 +05:30
|
|
|
'gramps.gui',
|
|
|
|
'gramps.gui.editors',
|
|
|
|
'gramps.gui.editors.displaytabs',
|
|
|
|
'gramps.gui.filters',
|
|
|
|
'gramps.gui.filters.sidebar',
|
2012-06-01 05:28:31 +05:30
|
|
|
'gramps.gui.logger',
|
2012-05-30 05:18:28 +05:30
|
|
|
'gramps.gui.merge',
|
|
|
|
'gramps.gui.plug',
|
2012-06-10 11:28:35 +05:30
|
|
|
'gramps.gui.plug.export',
|
2012-06-01 05:28:31 +05:30
|
|
|
'gramps.gui.plug.quick',
|
2012-05-30 05:18:28 +05:30
|
|
|
'gramps.gui.plug.report',
|
|
|
|
'gramps.gui.selectors',
|
|
|
|
'gramps.gui.views',
|
|
|
|
'gramps.gui.views.treemodels',
|
2012-06-02 10:12:05 +05:30
|
|
|
'gramps.gui.widgets',
|
2012-09-30 16:00:08 +05:30
|
|
|
'gramps.test',
|
|
|
|
'gramps.plugins',
|
|
|
|
'gramps.plugins.docgen',
|
|
|
|
'gramps.plugins.drawreport',
|
|
|
|
'gramps.plugins.export',
|
|
|
|
'gramps.plugins.gramplet',
|
|
|
|
'gramps.plugins.graph',
|
2012-11-15 16:11:15 +05:30
|
|
|
'gramps.plugins.importer',
|
2012-09-30 16:00:08 +05:30
|
|
|
'gramps.plugins.lib',
|
|
|
|
'gramps.plugins.lib.maps',
|
|
|
|
'gramps.plugins.mapservices',
|
|
|
|
'gramps.plugins.quickview',
|
|
|
|
'gramps.plugins.rel',
|
|
|
|
'gramps.plugins.sidebar',
|
|
|
|
'gramps.plugins.textreport',
|
|
|
|
'gramps.plugins.tool',
|
|
|
|
'gramps.plugins.view',
|
|
|
|
'gramps.plugins.webreport',
|
|
|
|
'gramps.plugins.webstuff',
|
|
|
|
],
|
|
|
|
package_data={'gramps': data_list},
|
2012-11-09 20:57:03 +05:30
|
|
|
data_files=[('share/mime-info', ['data/gramps.mime']),
|
|
|
|
('share/icons/gnome/48x48/mimetypes', PNG_FILES),
|
|
|
|
('share/icons/gnome/scalable/mimetypes', SVG_FILES),
|
|
|
|
('share/icons', ['gramps/images/gramps.png']),
|
|
|
|
('share/doc/gramps/example/gedcom', GEDCOM_FILES),
|
|
|
|
('share/doc/gramps/example/gramps', GRAMPS_FILES),
|
2013-01-05 05:16:24 +05:30
|
|
|
('share/doc/gramps', DOC_FILES),
|
|
|
|
('share/gramps', XML_FILES),
|
|
|
|
('share/gramps/icons/hicolor', IMAGE_FILES),
|
|
|
|
('share/gramps/icons/hicolor/16x16', IMAGE_16),
|
|
|
|
('share/gramps/icons/hicolor/22x22', IMAGE_22),
|
|
|
|
('share/gramps/icons/hicolor/48x48', IMAGE_48),
|
|
|
|
('share/gramps/icons/hicolor/scalable', IMAGE_SC),
|
|
|
|
]
|
2012-05-20 04:26:19 +05:30
|
|
|
)
|