aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2014-12-08 00:07:54 -0500
committerDevan Franchini <twitch153@gentoo.org>2014-12-08 00:07:58 -0500
commit2ce98a1d441f9d60cc2be967c94926743155a8e6 (patch)
tree624d3bc8a54bdcc486566aa0cdb520532e70dac2 /setup.py
parentCHANGES: Modified to reflect newest changes (diff)
downloadlayman-2ce98a1d441f9d60cc2be967c94926743155a8e6.tar.gz
layman-2ce98a1d441f9d60cc2be967c94926743155a8e6.tar.bz2
layman-2ce98a1d441f9d60cc2be967c94926743155a8e6.zip
setup.py: Adds support for sync-plugin-portage USE flag
Due to portage soon being able to support layman's sync plugin, changes have been added to the package's setup.py to support the installation of the sync plugin if the proper USE flag has been given.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index d57316c..8a815eb 100755
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,10 @@ SELECTABLE = {
use_defaults = ' '.join(list(SELECTABLE))
+SYNC_PLUGINS = {
+ 'sync-plugin-portage': 'layman.laymanator',
+}
+
# 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()
@@ -40,6 +44,9 @@ 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,