forked from Katello/katello-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (40 loc) · 1.15 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
from distutils.core import setup
import os
packages = [
"katello",
"katello.client",
"katello.client.api",
"katello.client.cli",
"katello.client.core",
"katello.client.lib",
"katello.client.lib.ui",
"katello.client.lib.utils"
]
requires = (
"kerberos",
"M2Crypto",
"iniparse",
"simplejson",
"dateutil"
)
def data_files():
data_files = [(os.path.join('share', 'locale', lang, 'LC_MESSAGES'),
[os.path.join('locale', lang, 'katello-cli.po')])
for lang in os.listdir('locale') if os.path.isdir('locale/' + lang)]
data_files.extend([
('etc/katello-cli', ['etc/client.conf']),
('etc/katello-cli', ['requirements.pip'])
])
return data_files
setup(
name = "katello-cli",
version = "1.4.2",
description = "Command line interface for the Katello System's Management Project.",
home_page = "http://www.katello.org",
license = "GPL",
packages = packages,
package_dir = { "katello" : "src/katello" },
scripts = ['bin/katello'],
data_files = data_files(),
requires = requires
)