public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Devan Franchini" <twitch153@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/layman:master commit in: /
Date: Sun,  8 Feb 2015 00:33:34 +0000 (UTC)	[thread overview]
Message-ID: <1423342118.01762cdecb2dbcabf5b7b6c21f0a101d75c002e1.twitch153@gentoo> (raw)

commit:     01762cdecb2dbcabf5b7b6c21f0a101d75c002e1
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  7 20:02:19 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sat Feb  7 20:48:38 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=01762cde

setup.py: Make the selected PM plugins installable

---
 setup.py | 40 +++++++++++++++++++++++++++++++---------
 1 file changed, 31 insertions(+), 9 deletions(-)

diff --git a/setup.py b/setup.py
index bca2481..aa8b37b 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,8 @@
 import os
 import sys
 
-from distutils.core import setup
+from distutils.core import setup, Command
+from distutils.dir_util import copy_tree
 
 
 # this affects the names of all the directories we do stuff with
@@ -47,14 +48,32 @@ for mod in sorted(SELECTABLE):
 
 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/, ' +\
+        modules.append(SYNC_PLUGINS[plugin])
+
+
+class setup_plugins(Command):
+    """ Perform moves for the plugins into base namespace
+    so they can be installed. """
+
+    user_options = [
+    ]
+
+    def initialize_options(self):
+        self.build_base = None
+
+    def finalize_options(self):
+        self.set_undefined_options('build',
+            ('build_base', 'build_base'))
+
+    def run(self):
+        for plugin in sorted(SYNC_PLUGINS):
+            if plugin in USE:
+                source = os.path.join('pm_plugins',
+                    SYNC_PLUGINS[plugin].split('.')[0])
+                target = SYNC_PLUGINS[plugin].split('.')[0]
+                copy_tree(source, target)
+
+
 setup(
     name          = 'layman',
     version       = VERSION,
@@ -69,5 +88,8 @@ setup(
         ] + modules,
     scripts       = ['bin/layman', 'bin/layman-overlay-maker',
                        'bin/layman-mounter', 'bin/layman-updater'],
+    cmdclass = {
+        'setup_plugins': setup_plugins,
+        },
     license       = 'GPL',
     )


             reply	other threads:[~2015-02-08  0:33 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-08  0:33 Devan Franchini [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-04-24 20:59 [gentoo-commits] proj/layman:master commit in: / Brian Dolbec
2020-04-24 20:59 Brian Dolbec
2017-02-02 17:12 Brian Dolbec
2016-05-02  3:44 Devan Franchini
2016-05-02  3:30 Devan Franchini
2016-05-01  1:03 Devan Franchini
2015-10-16 18:55 Devan Franchini
2015-10-16 18:49 Devan Franchini
2015-09-05 23:30 Devan Franchini
2015-08-04  0:54 Devan Franchini
2015-07-14 13:40 Devan Franchini
2015-03-27 23:42 Devan Franchini
2015-03-27 23:42 Devan Franchini
2015-02-08 17:25 Brian Dolbec
2015-02-08 17:25 Brian Dolbec
2015-02-08  0:33 Devan Franchini
2015-02-08  0:33 Devan Franchini
2014-12-08  5:10 Devan Franchini
2014-12-08  4:51 Devan Franchini
2014-11-02 21:14 Devan Franchini
2014-09-28 20:00 Devan Franchini
2014-09-28 19:33 Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-15 22:33 ` Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-19  1:49 Devan Franchini
2014-08-17  0:46 Brian Dolbec
2014-08-17  0:09 Brian Dolbec
2014-08-16 22:43 Devan Franchini
2014-08-19  1:49 ` Devan Franchini
2014-08-16 18:12 Brian Dolbec
2014-08-16 18:09 Brian Dolbec
2014-08-16 18:06 Brian Dolbec
2014-08-15 23:38 [gentoo-commits] proj/layman:gsoc2014 " Devan Franchini
2014-08-15 22:33 ` [gentoo-commits] proj/layman:master " Devan Franchini
2014-08-19  1:49 ` Devan Franchini
2014-08-15 22:33 Devan Franchini
2014-08-15 22:33 Devan Franchini
2014-07-24  2:10 Devan Franchini
2012-12-16 18:13 Brian Dolbec
2012-11-18 22:15 Brian Dolbec
2012-10-30  8:30 Brian Dolbec
2012-10-15  2:30 Brian Dolbec
2012-10-13 22:20 Brian Dolbec
2012-10-09  2:19 Brian Dolbec
2011-10-26 23:19 Brian Dolbec
2011-10-05 20:56 Brian Dolbec
2011-10-05 20:56 Brian Dolbec
2011-10-05 20:56 Brian Dolbec
2011-10-05 20:56 Brian Dolbec
2011-10-05 20:56 Brian Dolbec
2011-08-11  3:24 Brian Dolbec
2011-08-09  2:46 Brian Dolbec
2011-08-09  2:46 Brian Dolbec
2011-08-09  2:46 Brian Dolbec
2011-07-12 19:57 Brian Dolbec
2011-07-12 19:02 Brian Dolbec
2011-07-12 19:02 Brian Dolbec
2011-07-12 19:02 Brian Dolbec
2011-07-12 19:02 Brian Dolbec
2011-02-14  6:00 Brian Dolbec
2011-02-14  6:00 Brian Dolbec
2011-02-14  6:00 Brian Dolbec
2011-02-08  3:55 Sebastian Pipping
2011-02-08  3:41 Sebastian Pipping
2011-02-08  3:36 Sebastian Pipping
2011-02-08  3:36 Sebastian Pipping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423342118.01762cdecb2dbcabf5b7b6c21f0a101d75c002e1.twitch153@gentoo \
    --to=twitch153@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox