-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·118 lines (113 loc) · 4.66 KB
/
setup.py
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/usr/bin/env python
import os, sys
from distutils.core import setup
script_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
with open('%s/debian/changelog' % script_dir, 'r') as file_obj:
lines = file_obj.readlines()
deb_version = lines[0].split('(')[1].split(')')[0]
if 'TRAVIS' in os.environ and 'CI' in os.environ:
etc_dir = '../etc'
deb_version = os.environ['TRAVIS_TAG']
else:
etc_dir = '/etc'
setup( name = "vineyard",
version = deb_version,
description = "Easy to use Wine configuration program",
maintainer = "Christian Dannie Storgaard",
maintainer_email = "[email protected]",
url = "https://launchpad.net/vineyard",
license = "LGPL-2",
scripts = ['vineyard-preferences', 'vineyard-cli', 'vineyard-launcher', 'vineyard-indicator'],
packages = ['wine', 'vineyard', 'vineyard.pages', 'vineyard.widgets', 'vineyard.gtkwidgets'],
data_files = [
('share/vineyard', [
'data/vineyard-preferences.glade',
]),
('share/vineyard/bin', [
'data/bin/%s' % i for i
in os.listdir('%s/data/bin' % script_dir)
]),
('share/vineyard/docs', [
'data/docs/%s' % i for i
in os.listdir('%s/data/docs' % script_dir)
]),
('share/man/man1', [
'data/vineyard-preferences.1.gz'
]),
('%s/xdg/autostart' % etc_dir, [
'data/vineyard-indicator.desktop'
]),
('lib/nautilus/extensions-2.0/python', [
'data/%s' % i for i
in os.listdir('%s/data' % script_dir)
if 'nautilus' in i and i.endswith('.py')
]),
('share/applications', [
'data/vineyard-preferences.desktop',
'data/vineyard-launcher.desktop'
]),
('share/vineyard/icons', [
'data/icons/%s' % i for i
in os.listdir('%s/data/icons' % script_dir)
if i.split('.')[-1].lower() in ('svg', 'png')
]),
('share/icons/hicolor/16x16/apps', [
'data/icons/16/regedit.png',
'data/icons/16/taskmgr.png',
'data/icons/16/wcmd.png'
]),
('share/icons/hicolor/22x22/apps', [
'data/icons/22/vineyard-preferences.svg',
'data/icons/22/regedit.png',
'data/icons/22/taskmgr.png',
'data/icons/22/wcmd.svg'
]),
('share/icons/hicolor/32x32/apps', [
'data/icons/32/vineyard-preferences.svg',
'data/icons/32/regedit.png',
'data/icons/32/taskmgr.png',
'data/icons/32/wcmd.svg'
]),
('share/icons/hicolor/48x48/apps', [
'data/icons/48/vineyard-preferences.svg',
'data/icons/48/vineyard.svg',
'data/icons/48/regedit.png',
'data/icons/48/taskmgr.png',
'data/icons/48/wcmd.svg'
]),
('share/icons/Faenza/apps/scalable', [
'data/icons/Faenza/scalable/vineyard.svg',
'data/icons/Faenza/scalable/vineyard-preferences.svg'
]),
('share/icons/Faenza/status/22', [
'data/icons/Faenza/status/22/vineyard-panel-alert.svg',
'data/icons/Faenza/status/22/vineyard-panel-idle.svg'
]),
('share/icons/Faenza-Dark/status/22', [
'data/icons/Faenza-Dark/status/22/vineyard-panel-alert.svg',
'data/icons/Faenza-Dark/status/22/vineyard-panel-idle.svg'
]),
('share/icons/Humanity/status/22', [
'data/icons/Humanity/status/22/vineyard-panel-alert.svg',
'data/icons/Humanity/status/22/vineyard-panel-idle.svg'
]),
('share/icons/ubuntu-mono-dark/status/22', [
'data/icons/ubuntu-mono-dark/status/22/vineyard-panel-alert.svg',
'data/icons/ubuntu-mono-dark/status/22/vineyard-panel-idle.svg'
]),
('share/icons/ubuntu-mono-light/status/22', [
'data/icons/ubuntu-mono-light/status/22/vineyard-panel-alert.svg',
'data/icons/ubuntu-mono-light/status/22/vineyard-panel-idle.svg'
]),
] + [
(
'share/vineyard/locale/%s/LC_MESSAGES' % l,
[
'data/locale/%s/LC_MESSAGES/%s' % (l, f) for f
in os.listdir('%s/data/locale/%s/LC_MESSAGES' % (script_dir, l))
if f.lower().endswith('.mo')
]
) for l
in os.listdir('%s/data/locale' % script_dir)
]
)