From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D225C13877A for ; Tue, 19 Aug 2014 04:16:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFCD7E0A0B; Tue, 19 Aug 2014 04:16:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7588EE0A0B for ; Tue, 19 Aug 2014 04:16:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5884633FEEF for ; Tue, 19 Aug 2014 04:16:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFF343B9A for ; Tue, 19 Aug 2014 01:49:05 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1408236265.4c730a782e11895409252af9e8546676915d50af.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: / X-VCS-Repository: proj/layman X-VCS-Files: setup.py X-VCS-Directories: / X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 4c730a782e11895409252af9e8546676915d50af X-VCS-Branch: master Date: Tue, 19 Aug 2014 01:49:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 322db6f3-7997-4013-85d6-1e7ff62c1472 X-Archives-Hash: 178af70299a9e5835c74f13f3440b39c commit: 4c730a782e11895409252af9e8546676915d50af Author: Brian Dolbec gentoo org> AuthorDate: Sun Aug 17 00:44:25 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Sun Aug 17 00:44:25 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=4c730a78 setup.py: Map the USE flag keys to the module names --- setup.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 4e7fc69..d57316c 100755 --- a/setup.py +++ b/setup.py @@ -9,16 +9,36 @@ from distutils.core import setup sys.path.insert(0, './') from layman.version import VERSION -SELECTABLE = "bzr cvs darcs git g_sorcery mercurial rsync squashfs svn tar" +# 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)) + # 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", SELECTABLE).split() +USE = os.environ.get("USE", use_defaults).split() -modules = ['layman.overlays.modules.stub'] +modules = [ + 'layman.overlays.modules.rsync', + 'layman.overlays.modules.stub', + 'layman.overlays.modules.tar', + ] -for mod in SELECTABLE.split(): +for mod in sorted(SELECTABLE): if mod in USE: - modules.append('layman.overlays.modules.%s' %mod) + modules.append('layman.overlays.modules.%s' % SELECTABLE[mod]) setup(name = 'layman',