From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mirrorselect:master commit in: /
Date: Wed, 13 Feb 2019 08:43:13 +0000 (UTC) [thread overview]
Message-ID: <1550047324.7d5fd760f68c19156a6766cdea77c291513cac12.zmedico@gentoo> (raw)
commit: 7d5fd760f68c19156a6766cdea77c291513cac12
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 13 08:40:52 2019 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Feb 13 08:42:04 2019 +0000
URL: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=7d5fd760
setup.py: extend sdist to archive files owned by root
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
setup.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/setup.py b/setup.py
index df7b851..919dcce 100755
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ from __future__ import print_function
import re
import sys
from distutils import core, log
+from distutils.command.sdist import sdist
import os
import io
@@ -67,6 +68,18 @@ class set_version(core.Command):
sub(manpage, man_re)
+class x_sdist(sdist):
+ """sdist defaulting to archive files owned by root."""
+
+ def finalize_options(self):
+ if self.owner is None:
+ self.owner = 'root'
+ if self.group is None:
+ self.group = 'root'
+
+ sdist.finalize_options(self)
+
+
def load_test():
"""Only return the real test class if it's actually being run so that we
don't depend on snakeoil just to install."""
@@ -113,6 +126,7 @@ core.setup(
),
cmdclass={
'test': load_test(),
+ 'sdist': x_sdist,
'set_version': set_version,
},
)
next reply other threads:[~2019-02-13 8:43 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 8:43 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-08-07 0:14 [gentoo-commits] proj/mirrorselect:master commit in: / Sam James
2022-07-10 21:16 Brian Dolbec
2022-05-31 18:56 Brian Dolbec
2022-05-31 4:08 Brian Dolbec
2014-05-29 16:32 Brian Dolbec
2014-05-05 2:04 Brian Dolbec
2014-01-31 15:44 [gentoo-commits] proj/mirrorselect:ssl " Brian Dolbec
2014-03-02 7:44 ` [gentoo-commits] proj/mirrorselect:master " Brian Dolbec
2013-10-18 14:26 Brian Dolbec
2013-03-10 13:07 Brian Dolbec
2012-12-16 6:02 Brian Dolbec
2012-12-16 4:48 Brian Dolbec
2012-12-15 22:31 Brian Dolbec
2012-12-15 20:26 Brian Dolbec
2012-11-14 18:25 Paul Varner
2012-11-14 18:18 Paul Varner
2012-11-14 18:06 Paul Varner
2012-11-12 21:41 Brian Dolbec
2012-11-12 15:56 Brian Dolbec
2012-11-12 7:46 Brian Dolbec
2012-11-12 0:50 Brian Dolbec
2012-11-11 23:47 Brian Dolbec
2012-11-11 23:47 Brian Dolbec
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=1550047324.7d5fd760f68c19156a6766cdea77c291513cac12.zmedico@gentoo \
--to=zmedico@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