2 # -*- coding: ascii -*-
4 ###########################################################################
5 # clive, video extraction utility
6 # Copyright (C) 2007-2008 Toni Gundogdu
8 # clive is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 0.1.2-1307 USA
21 ###########################################################################
28 from distutils.core import setup
30 import clive as _clive
32 if sys.platform == 'win32':
39 desc = 'Video extraction tool'
41 ldesc = 'Video extraction tool for Youtube, Google ' \
42 'video and other video websites'
44 author = _clive.__author__.rsplit(' ', 1)[0]
46 author_email = re.sub('(^<)|(>)', '',
47 _clive.__author__.rsplit(' ',1)[1])
50 'Environment :: Console',
51 'Intended Audience :: End Users/Desktop',
52 'Operating System :: POSIX',
53 'Programming Language :: Python',
54 'License :: OSI Approved :: GNU General Public License (GPL)',
55 'Natural Language :: English',
60 manpage = 'man/clive.1'
61 manpage_gz = manpage + '.gz'
62 data_files = [ ('share/man/man1', [manpage_gz]) ]
66 version = _clive.__version__,
68 long_description = ldesc,
70 maintainer_email = author_email,
73 scripts = ['scripts/clive'],
75 package_dir = {'clive':'clive'},
76 data_files = data_files,
77 classifiers = classifiers,
81 if sys.platform == 'win32' and _py2exe_avail:
82 setup_args['console'] = ['scripts/clive']
83 setup_args['data_files'] = []
85 # gzip clive.1; otherwise bdist_rpm will fail
86 gzip.GzipFile(manpage_gz, 'w').write(open(manpage).read())