root/branch/UmitBluetooth/setup.py @ 3696

Revision 3696, 2.2 kB (checked in by devtar, 5 years ago)

For UmitBT 0.71RC2. Versioning rectified across several files.

Line 
1#!/usr/bin/env python
2# Copyright (C) 2008 Adriano Monteiro Marques.
3#
4# Author: Devtar Singh <devtar@gmail.com>
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20import sys
21import os
22import os.path
23import re
24
25import distutils.core
26
27from glob import glob
28from stat import *
29
30sample_dir = os.path.join('UmitBT','sample')
31pixmaps_dir = os.path.join('UmitBT','share', 'pixmaps')
32icons_dir = os.path.join('UmitBT','share', 'icons')
33btdb_dir = os.path.join('UmitBT','config', 'db')
34
35data_files = [  (sample_dir, glob(os.path.join(sample_dir, '*.ubt'))),
36                (btdb_dir, [os.path.join(btdb_dir, 'btdb.db')]),
37                (pixmaps_dir, glob(os.path.join(pixmaps_dir, '*.png'))),
38                (icons_dir, glob(os.path.join(icons_dir, '*.ico'))),
39
40packages = ['UmitBT']
41for root, dirs, files in os.walk('UmitBT'):
42     if root.rfind(".svn") == -1:       
43        package = root.replace(os.path.sep, '/')
44        print 'adding package %r' % (package,)
45        packages.append(package)
46
47distutils.core.setup(name='UmitBluetooth',
48    version="0.7RC2",
49    description='UmitBluetooth is a bluetooth device scanner',
50    long_description='UmitBluetooth is a bluetooth device scanner which has an integrated manufacturer detection to display devices in a graphical manner.',
51    author='Devtar Singh',
52    author_email='devtar@gmail.com',
53    packages=packages,
54    classifiers=['Development Status :: 3 - Alpha',
55          'License :: OSI Approved :: GNU General Public License v2',
56          'Programming Language :: Python',
57    ],
58    scripts=['umitbluetooth'],
59    data_files = data_files
60)
Note: See TracBrowser for help on using the browser.