public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:pending commit in: /
Date: Thu, 26 Feb 2015 20:44:30 +0000 (UTC)	[thread overview]
Message-ID: <1424980494.c0a49affccc4ed2ca39bfcc1df7a84bc439ddeeb.dolsen@gentoo> (raw)
Message-ID: <20150226204430.OCD18w9ZCoNY-Yd-lBWyn4n5Lw1Gor9ByRdcQmw3IMk@z> (raw)

commit:     c0a49affccc4ed2ca39bfcc1df7a84bc439ddeeb
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  7 14:42:27 2013 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Thu Feb 26 19:54:54 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=c0a49aff

Streamline data_files generation with additional keys

* Move data_file generation out of setup().
* Return per-directory keys, since distutils only uses the directory
  key and value filename (not the value path) when installing
  data_files.
* Use relative key paths for more flexible installation.
* Raise NotImplementedError if os.path.sep is not '/', which allows
  for simpler path handling.

---
 setup.py | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index 7a57c54..a412d48 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,14 @@ def _files(prefix, root):
 		yield (install_directory, file_source_paths)
 
 
+_data_files = [('/etc/catalyst', ['etc/catalyst.conf','etc/catalystrc']),
+	('/usr/share/man/man1', ['files/catalyst.1']),
+	('/usr/share/man/man5', ['files/catalyst-config.5', 'files/catalyst-spec.5'])
+	]
+_data_files.extend(_files('livecd', 'lib/catalyst/'))
+_data_files.extend(_files('targets', 'lib/catalyst/'))
+
+
 _setup(
 	name=_package_name,
 	version=__version__,
@@ -69,12 +77,9 @@ _setup(
 	packages=[
 		_package_name,
 		'{0}.arch'.format(_package_name),
+		'{0}.base'.format(_package_name),
 		'{0}.targets'.format(_package_name),
 		],
-	data_files=list(_itertools.chain(
-		_files(prefix='/etc/catalyst', root='etc'),
-		_files(prefix='lib/catalyst/livecd', root='livecd'),
-		_files(prefix='lib/catalyst/targets', root='targets'),
-		)),
+	data_files=_data_files,
 	provides=[_package_name],
 	)


             reply	other threads:[~2015-02-26 20:44 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-26 22:18 Brian Dolbec [this message]
2015-02-26 20:44 ` [gentoo-commits] proj/catalyst:pending commit in: / Brian Dolbec
  -- strict thread matches above, loose matches on Subject: below --
2022-01-30 20:42 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-06-11 18:29 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 20:15 Matt Turner
2020-03-28 20:07 Matt Turner
2019-08-26 16:48 Matt Turner
2018-09-12  6:43 Brian Dolbec
2017-12-30 18:25 Brian Dolbec
2017-12-29  0:35 Brian Dolbec
2017-12-07  7:21 Brian Dolbec
2017-04-13 16:48 Mike Frysinger
2017-03-09  9:39 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2016-02-17  5:24 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2017-03-07 17:21 [gentoo-commits] proj/catalyst:catalyst_use " Brian Dolbec
2017-03-08 23:16 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2016-03-21  5:09 Mike Frysinger
2015-10-06 13:46 Mike Frysinger
2015-09-23 17:55 Richard Farina
2015-09-06 21:21 Brian Dolbec
2015-08-30  1:05 Brian Dolbec
2015-05-24 13:47 Jorge Manuel B. S. Vicetto
2015-02-26 22:18 Brian Dolbec
2015-02-26 22:18 Brian Dolbec
2015-02-26 20:44 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-02-26 22:18 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-02-26 19:25 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-02-26 20:12 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-02-22 21:48 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-03-02 15:42 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-02-11  3:02 Jorge Manuel B. S. Vicetto
2014-01-03  5:03 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-01-06  2:00 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2013-12-15  4:19 Matt Turner
2013-12-15  4:19 Matt Turner
2013-11-13 22:00 Matt Turner
2013-10-26 20:10 Matt Turner
2013-10-26 20:10 Matt Turner
2013-10-26 20:10 Matt Turner
2013-08-08  5:38 Matt Turner
2013-07-31  4:12 Matt Turner
2013-07-25  6:06 Matt Turner
2013-04-15  3:23 Jorge Manuel B. S. Vicetto
2013-03-09  2:41 Matt Turner
2012-12-04 20:46 Richard Farina
2012-11-02  0:07 Richard Farina
2012-10-31 21:58 Richard Farina
2012-09-05  1:48 Jorge Manuel B. S. Vicetto
2012-08-23  5:55 Jorge Manuel B. S. Vicetto
2012-08-23  5:55 Jorge Manuel B. S. Vicetto
2012-07-27  4:42 Jorge Manuel B. S. Vicetto
2012-07-10 18:32 [gentoo-commits] proj/catalyst:catalyst_2 " Sebastian Pipping
2012-07-10 18:33 ` [gentoo-commits] proj/catalyst:master " Sebastian Pipping
2012-07-02 14:53 Sebastian Pipping
2011-06-25 18:08 Sebastian Pipping
2011-06-25 18:08 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=1424980494.c0a49affccc4ed2ca39bfcc1df7a84bc439ddeeb.dolsen@gentoo \
    --to=dolsen@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