| 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 | |
|---|
| 20 | import sys |
|---|
| 21 | import os |
|---|
| 22 | import os.path |
|---|
| 23 | import re |
|---|
| 24 | |
|---|
| 25 | import distutils.core |
|---|
| 26 | |
|---|
| 27 | from glob import glob |
|---|
| 28 | from stat import * |
|---|
| 29 | |
|---|
| 30 | sample_dir = os.path.join('UmitBT','sample') |
|---|
| 31 | pixmaps_dir = os.path.join('UmitBT','share', 'pixmaps') |
|---|
| 32 | icons_dir = os.path.join('UmitBT','share', 'icons') |
|---|
| 33 | btdb_dir = os.path.join('UmitBT','config', 'db') |
|---|
| 34 | |
|---|
| 35 | data_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 | |
|---|
| 40 | packages = ['UmitBT'] |
|---|
| 41 | for 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 | |
|---|
| 47 | distutils.core.setup(name='UmitBluetooth', |
|---|
| 48 | version="0.7RC1", |
|---|
| 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 | ) |
|---|