~ubuntu-branches/ubuntu/trusty/webservice-office-zoho/trusty

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Bennett, Alexander Sack
  • Date: 2010-04-09 16:39:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409163935-706v6jmyvrjsfgp4
Tags: 0.4.1-0ubuntu1
* debian/copyright: Add icon copyright text supplied by Zoho Corp. 

[ Alexander Sack <asac@ubuntu.com> ]
* remove debian/webservice-office-zoho.install to fix ftbfs; all is
  properly installed by setup.py anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
from distutils.version import StrictVersion
 
4
import os
 
5
import glob
 
6
 
 
7
try:
 
8
    import DistUtilsExtra.auto
 
9
except ImportError:
 
10
    import sys
 
11
    print >> sys.stderr, 'To build webservice-office-zoho you need https://launchpad.net/python-distutils-extra'
 
12
    sys.exit(1)
 
13
 
 
14
assert StrictVersion(DistUtilsExtra.auto.__version__) >= '2.4', 'needs DistUtilsExtra.auto >= 2.4'
 
15
 
 
16
packageFolder = 'share/webservice-office-zoho'
 
17
 
 
18
DistUtilsExtra.auto.setup(
 
19
    name='webservice-office-zoho',
 
20
    version='0.1',
 
21
    description='Ubuntu web service for office documents using Zoho',
 
22
    long_description='webservice-office-zoho allows office documents to be viewed online using the Zoho web services',
 
23
    url='http://launchpad.net/webservice-office-zoho',
 
24
    license='GPL v3',
 
25
    author='Jamie Bennett',
 
26
    author_email='jb@canonical.com',
 
27
    scripts=['bin/webservice-office-zoho'],
 
28
    data_files=[(packageFolder, ['doc/empty-zoho-document.odt', 
 
29
                                 'doc/empty-zoho-document.ods',
 
30
                                 'doc/empty-zoho-document.odp']),
 
31
                ('share/icons/hicolor/32x32/apps', glob.glob("images/icons/32x32/*.png")),
 
32
                ('share/icons/hicolor/24x24/apps', glob.glob("images/icons/24x24/*.png")),
 
33
                ('share/icons/hicolor/22x22/apps', glob.glob("images/icons/22x22/*.png")),
 
34
                ('share/icons/hicolor/16x16/apps', glob.glob("images/icons/16x16/*.png")),
 
35
                ('share/icons/hicolor/12x12/apps', glob.glob("images/icons/12x12/*.png"))]
 
36
)
 
37