summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_dumb.py
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2013-11-15 18:01:52 (GMT)
committerAndrew Kuchling <amk@amk.ca>2013-11-15 18:01:52 (GMT)
commit5e2d45672c8f84f6b1877e68ab92b4b50e2d124d (patch)
treeacccecbfdceb5560510b1b989b44a34c65822f7d /Lib/distutils/command/bdist_dumb.py
parentc31ebb60f975b231e8f2fff7af72204bf3309ed0 (diff)
downloadcpython-5e2d45672c8f84f6b1877e68ab92b4b50e2d124d.zip
cpython-5e2d45672c8f84f6b1877e68ab92b4b50e2d124d.tar.gz
cpython-5e2d45672c8f84f6b1877e68ab92b4b50e2d124d.tar.bz2
Issue #19544 and Issue #6516: Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516.
Diffstat (limited to 'Lib/distutils/command/bdist_dumb.py')
-rw-r--r--Lib/distutils/command/bdist_dumb.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index eefdfea..4405d12 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -33,6 +33,12 @@ class bdist_dumb(Command):
('relative', None,
"build the archive using relative paths"
"(default: false)"),
+ ('owner=', 'u',
+ "Owner name used when creating a tar file"
+ " [default: current user]"),
+ ('group=', 'g',
+ "Group name used when creating a tar file"
+ " [default: current group]"),
]
boolean_options = ['keep-temp', 'skip-build', 'relative']
@@ -48,6 +54,8 @@ class bdist_dumb(Command):
self.dist_dir = None
self.skip_build = None
self.relative = 0
+ self.owner = None
+ self.group = None
def finalize_options(self):
if self.bdist_dir is None:
@@ -101,7 +109,8 @@ class bdist_dumb(Command):
# Make the archive
filename = self.make_archive(pseudoinstall_root,
- self.format, root_dir=archive_root)
+ self.format, root_dir=archive_root,
+ owner=self.owner, group=self.group)
if self.distribution.has_ext_modules():
pyversion = get_python_version()
else: