root / pykota / trunk / setup.py @ 839

Revision 839, 1.6 kB (checked in by jalet, 21 years ago)

The installation script installs the man pages too now.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
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
28import sys
29import glob
30import os
31from distutils.core import setup
32
33sys.path.insert(0, "pykota")
34from pykota.version import __version__, __doc__
35
36data_files = []
37mofiles = glob.glob(os.sep.join(["po", "*", "*.mo"]))
38for 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   
43directory = os.sep.join(["share", "man", "man1"])
44manpages = glob.glob(os.sep.join(["man", "*.1"]))   
45data_files.append((directory, manpages))
46
47setup(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)
Note: See TracBrowser for help on using the browser.