1 | #! /usr/bin/env python |
---|
2 | # |
---|
3 | # PyKota |
---|
4 | # |
---|
5 | # PyKota : Print Quotas for CUPS |
---|
6 | # |
---|
7 | # (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
8 | # You're welcome to redistribute this software under the |
---|
9 | # terms of the GNU General Public Licence version 2.0 |
---|
10 | # or, at your option, any higher version. |
---|
11 | # |
---|
12 | # You can read the complete GNU GPL in the file COPYING |
---|
13 | # which should come along with this software, or visit |
---|
14 | # the Free Software Foundation's WEB site http://www.fsf.org |
---|
15 | # |
---|
16 | # $Id$ |
---|
17 | # |
---|
18 | # $Log$ |
---|
19 | # Revision 1.2 2003/03/09 16:49:04 jalet |
---|
20 | # The installation script installs the man pages too now. |
---|
21 | # |
---|
22 | # Revision 1.1 2003/02/05 21:28:17 jalet |
---|
23 | # Initial import into CVS |
---|
24 | # |
---|
25 | # |
---|
26 | # |
---|
27 | |
---|
28 | import sys |
---|
29 | import glob |
---|
30 | import os |
---|
31 | from distutils.core import setup |
---|
32 | |
---|
33 | sys.path.insert(0, "pykota") |
---|
34 | from pykota.version import __version__, __doc__ |
---|
35 | |
---|
36 | data_files = [] |
---|
37 | mofiles = glob.glob(os.sep.join(["po", "*", "*.mo"])) |
---|
38 | for mofile in mofiles : |
---|
39 | lang = mofile.split(os.sep)[1] |
---|
40 | directory = os.sep.join(["share", "locale", lang, "LC_MESSAGES"]) |
---|
41 | data_files.append((directory, [ mofile ])) |
---|
42 | |
---|
43 | directory = os.sep.join(["share", "man", "man1"]) |
---|
44 | manpages = glob.glob(os.sep.join(["man", "*.1"])) |
---|
45 | data_files.append((directory, manpages)) |
---|
46 | |
---|
47 | setup(name = "pykota", version = __version__, |
---|
48 | license = "GNU GPL", |
---|
49 | description = __doc__, |
---|
50 | author = "Jerome Alet", |
---|
51 | author_email = "alet@librelogiciel.com", |
---|
52 | url = "http://www.librelogiciel.com/software/", |
---|
53 | packages = [ "pykota", "pykota.storages", "pykota.requesters", "pykota.loggers" ], |
---|
54 | scripts = [ "bin/pykota", "bin/edpykota", "bin/repykota", "bin/warnpykota" ], |
---|
55 | data_files = data_files) |
---|