File: setup.py

package info (click to toggle)
positron 1:1.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 500 kB
  • ctags: 274
  • sloc: python: 2,952; sh: 385; makefile: 51
file content (48 lines) | stat: -rwxr-xr-x 1,730 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
# -*- Mode: python -*-
#
# setup.py - distutils setup script
#
# Copyright (C) 2003, Xiph.org Foundation
#
# This file is part of positron.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of a BSD-style license (see the COPYING file in the
# distribution).
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the license for more details.

import os
from glob import glob
from os.path import isfile

from distutils.core import setup
from setupext import install_data_ext

docdirbase  = 'share/doc/positron'
manpagebase = 'share/man/man1'
docfiles    = filter(isfile, glob('doc/*.html')) + \
              filter(isfile, glob('doc/*.png')) + ['README', 'COPYING']
manpages    = ['doc/positron.1']
examfiles   = filter(isfile, glob('doc/examples/*'))

setup(name="positron",
      version="1.1",
      description="A synchronization manager for the Neuros Audio Computer",
      long_description="positron is the synchronization manager for the Neuros Audio Computer.\nIt supports adding, removing, and syncing files to/from the Neuros\ndevice.",
      license="BSD",
      author="Stan Seibert",
      author_email="volsung@xiph.org",
      url="http://www.neurosaudio.com/",
      packages=['positron', 'positron.db', 'positron.db.new'],
      scripts=['scripts/positron'],
      cmdclass = {'install_data': install_data_ext},
      data_files = [('data', docdirbase, docfiles),
                    ('data', os.path.join(docdirbase, 'examples'), examfiles),
                    ('data', manpagebase, manpages)]
      )