~ubuntu-branches/ubuntu/trusty/ubuntukylin-wallpapers/trusty-proposed

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-03-03 11:47:10 UTC
  • Revision ID: package-import@ubuntu.com-20130303114710-cdyfcr7fan2fr1so
Tags: 13.10.0
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from distutils.core import setup
 
2
from DistUtilsExtra.command import *
 
3
import glob
 
4
import re
 
5
import os
 
6
 
 
7
# look/set what version we have
 
8
changelog = "debian/changelog"
 
9
if os.path.exists(changelog):
 
10
    head=open(changelog).readline()
 
11
    match = re.compile(".*\((.*)\).*").match(head)
 
12
    if match:
 
13
        version = match.group(1)
 
14
 
 
15
setup(
 
16
    name = 'ubuntukylin-wallpapers',
 
17
    version = version,
 
18
    data_files=[('share/backgrounds', glob.glob('*.png')+glob.glob('*.jpg')),
 
19
                ('share/backgrounds/ubuntukylin', glob.glob('ubuntukylin/*.xml')),
 
20
               ],
 
21
    cmdclass = { "build" : build_extra.build_extra,
 
22
                 "build_i18n" :  build_i18n.build_i18n }
 
23
)
 
24