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 sys.path.insert(0, 'src')
32 import clive as _clive
34 if sys.platform == 'win32':
41 desc = 'Video extraction tool'
43 ldesc = 'Video extraction tool for Youtube, Google ' \
44 'video and other video websites'
46 author = _clive.__author__.rsplit(' ', 1)[0]
48 author_email = re.sub('(^<)|(>)', '',
49 _clive.__author__.rsplit(' ',1)[1])
52 'Environment :: Console',
53 'Intended Audience :: End Users/Desktop',
54 'Operating System :: POSIX',
55 'Programming Language :: Python',
56 'License :: OSI Approved :: GNU General Public License (GPL)',
57 'Natural Language :: English',
62 manpage = 'man/clive.1'
63 manpage_gz = manpage + '.gz'
64 data_files = [ ('share/man/man1', [manpage_gz]) ]
68 version = _clive.__version__,
70 long_description = ldesc,
72 maintainer_email = author_email,
75 scripts = ['src/scripts/clive'],
77 package_dir = {'clive':'src/clive'},
78 data_files = data_files,
79 classifiers = classifiers,
83 if sys.platform == 'win32' and _py2exe_avail:
84 setup_args['console'] = ['src/scripts/clive']
85 setup_args['data_files'] = []
87 # gzip clive.1; otherwise bdist_rpm will fail
88 gzip.GzipFile(manpage_gz, 'w').write(open(manpage).read())