Skip to content
Newer
Older
100644 43 lines (37 sloc) 1.45 KB
2440656 Initial commit
matimatik authored Oct 7, 2009
1 #!/usr/bin/env python
2 # -*- mode: python; coding: koi8-r -*-
3
4 import sys
5 import os
6 from distutils.core import setup
7 from distutils.command.install_data import install_data
8
9 program_version = '0.2.1'
10
11 class my_install_data(install_data):
12 # for install data files to library dir
13 def run(self):
14 #need to change self.install_dir to the actual library dir
15 install_cmd = self.get_finalized_command('install')
16 self.install_dir = getattr(install_cmd, 'install_lib')
17 return install_data.run(self)
18
19 setup(
20 name = 'fbless',
21 version = program_version,
22 url = 'http://pybookreader.narod.ru/',
23 author = 'Con Radchenko',
24 author_email = 'pybookreader@narod.ru',
25 description = 'Curses based FictionBook2 viewer.',
26 license = 'GPL',
27 scripts = ['fbless'],
28 packages = ['fbless_lib'],
29 cmdclass = {'install_data': my_install_data},
30 data_files = [ ('fbless_lib/hyph_dicts',
31 ['fbless_lib/hyph_dicts/hyph_de.dic',
32 'fbless_lib/hyph_dicts/hyph_en.dic',
33 'fbless_lib/hyph_dicts/hyph_es.dic',
34 'fbless_lib/hyph_dicts/hyph_fr.dic',
35 'fbless_lib/hyph_dicts/hyph_it.dic',
36 'fbless_lib/hyph_dicts/hyph_ru.dic',
37 'fbless_lib/hyph_dicts/hyph_uk.dic',
38 'fbless_lib/hyph_dicts/langs.txt',
39 'fbless_lib/hyph_dicts/README.ru']),
40 ],
41 )
42
Something went wrong with that request. Please try again.