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
|
#!/usr/bin/env python
import os
import sys
from distutils.core import setup
# this affects the names of all the directories we do stuff with
sys.path.insert(0, './')
from layman.version import VERSION
# leave rsync and tar commented out since they are part of system set
# make them installed by default
SELECTABLE = {
'bazaar': 'bzr',
'cvs': 'cvs',
'darcs': 'darcs',
'git': 'git',
'g-sorcery': 'g_sorcery',
'mercurial': 'mercurial',
#'rsync': 'rsync',
'squashfs': 'squashfs',
'subversion': 'svn',
#'tar': 'tar',
}
use_defaults = ' '.join(list(SELECTABLE))
SYNC_PLUGINS = {
'sync-plugin-portage': 'portage.sync.modules.laymansync',
}
# get the USE from the environment, default to all selectable modules
# split them so we don't get substring matches
USE = os.environ.get("USE", use_defaults).split()
modules = [
'layman.overlays.modules.rsync',
'layman.overlays.modules.stub',
'layman.overlays.modules.tar',
]
for mod in sorted(SELECTABLE):
if mod in USE:
modules.append('layman.overlays.modules.%s' % SELECTABLE[mod])
for plugin in sorted(SYNC_PLUGINS):
if plugin in USE:
modules.append(SYNC_PLUGIN)
setup(name = 'layman',
version = VERSION,
description = 'Python script for retrieving gentoo overlays',
author = 'Brian Dolbec, Gunnar Wrobel (original author retired)',
author_email = 'dolsen@gentoo',
url = 'http://layman.sourceforge.net/, ' +\
'http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=summary',
packages = ['layman', 'layman.config_modules',
'layman.config_modules.makeconf', 'layman.config_modules.reposconf',
'layman.overlays', 'layman.overlays.modules',
] + modules,
scripts = ['bin/layman', 'bin/layman-overlay-maker',
'bin/layman-mounter', 'bin/layman-updater'],
license = 'GPL',
)
|