1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/usr/bin/python
# encoding=UTF-8
# Copyright © 2008 Jakub Wilk <jwilk@jwilk.net>
#
# This package 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; version 2 dated June, 1991.
#
# This package 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.
'''
*djvusmooth* is a graphical editor for `DjVu <http://djvu.org>`_ documents.
'''
import os
os.putenv('TAR_OPTIONS', '--owner root --group root --mode a+rX')
classifiers = '''\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Topic :: Text Processing
Topic :: Multimedia :: Graphics\
'''.split('\n')
from distutils.core import setup
from lib import __version__
data_files = []
for root, dirs, files in os.walk('locale'):
for f in files:
if not f.endswith('.mo'):
continue
data_files.append(
(os.path.join('share', root),
[os.path.join(root, f)]
))
setup(
name = 'djvusmooth',
version = __version__,
license = 'GNU GPL 2',
description = 'graphical editor for DjVu',
long_description = __doc__.strip(),
classifiers = classifiers,
url = 'http://jwilk.net/software/djvusmooth',
author = 'Jakub Wilk',
author_email = 'jwilk@jwilk.net',
packages = ['djvusmooth'] + ['djvusmooth.%s' % x for x in 'gui models text'.split()],
package_dir = dict(djvusmooth='lib'),
scripts = ['djvusmooth'],
data_files = data_files,
)
# vim:ts=4 sw=4 et
|