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
|
#!/usr/bin/env python
# -*- mode: python; coding: koi8-r -*-
import sys
import os
from distutils.core import setup
from distutils.command.install_data import install_data
program_version = '0.2.3'
class my_install_data(install_data):
# for install data files to library dir
def run(self):
#need to change self.install_dir to the actual library dir
install_cmd = self.get_finalized_command('install')
self.install_dir = getattr(install_cmd, 'install_lib')
return install_data.run(self)
setup(
name='fbless',
version=program_version,
url='https://github.com/matimatik/fbless',
download_url='https://github.com/matimatik/fbless/downloads',
author='Con Radchenko',
author_email='pybookreader@narod.ru',
maintainer='Ivan Burbakov',
maintainer_email='matimatik@lavabit.com',
description='Curses based FictionBook2 viewer.',
license='GPL',
scripts=['fbless'],
packages=['fbless_lib'],
cmdclass={'install_data': my_install_data},
data_files=[
(
'fbless_lib/hyph_dicts',
[
'fbless_lib/hyph_dicts/hyph_de.dic',
'fbless_lib/hyph_dicts/hyph_en.dic',
'fbless_lib/hyph_dicts/hyph_es.dic',
'fbless_lib/hyph_dicts/hyph_fr.dic',
'fbless_lib/hyph_dicts/hyph_it.dic',
'fbless_lib/hyph_dicts/hyph_ru.dic',
'fbless_lib/hyph_dicts/hyph_uk.dic',
'fbless_lib/hyph_dicts/langs.txt',
'fbless_lib/hyph_dicts/README.ru',
],
),
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console :: Curses',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX',
'Programming Language :: Python :: 2',
'Topic :: Education',
'Topic :: Other/Nonlisted Topic',
],
)
|