summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/bdist_dumb.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-02-01 17:59:49 -0500
committerBenjamin Peterson <benjamin@python.org>2015-02-01 17:59:49 -0500
commit596ffac4b9ff54aeb2134988bb85b3c492ae5849 (patch)
treebf0d44eaf89cefa4bbda16672c882ad3667b433d /Lib/distutils/command/bdist_dumb.py
parentc67c6e554e82f48627dd4e3b70232ca73d00ec64 (diff)
parent08e89d1aa305a920347fd4d7350684ff37c238f9 (diff)
downloadcpython-596ffac4b9ff54aeb2134988bb85b3c492ae5849.tar.gz
merge 3.3 (#23369)
Diffstat (limited to 'Lib/distutils/command/bdist_dumb.py')
-rw-r--r--Lib/distutils/command/bdist_dumb.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py
index 1ab09d1616..4405d12c05 100644
--- a/Lib/distutils/command/bdist_dumb.py
+++ b/Lib/distutils/command/bdist_dumb.py
@@ -33,13 +33,18 @@ 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']
default_format = { 'posix': 'gztar',
- 'nt': 'zip',
- 'os2': 'zip' }
+ 'nt': 'zip' }
def initialize_options(self):
self.bdist_dir = None
@@ -49,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:
@@ -85,11 +92,6 @@ class bdist_dumb(Command):
archive_basename = "%s.%s" % (self.distribution.get_fullname(),
self.plat_name)
- # OS/2 objects to any ":" characters in a filename (such as when
- # a timestamp is used in a version) so change them to hyphens.
- if os.name == "os2":
- archive_basename = archive_basename.replace(":", "-")
-
pseudoinstall_root = os.path.join(self.dist_dir, archive_basename)
if not self.relative:
archive_root = self.bdist_dir
@@ -107,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: