diff options
author | Marc-André Lemburg <mal@egenix.com> | 2002-01-31 18:56:00 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2002-01-31 18:56:00 (GMT) |
commit | 2544f51036c51d87be53f6a5e35e867c8333378a (patch) | |
tree | 5f745a0cd4c6d2473af7c6227c9ae5508bf8ffda /Lib/distutils/command/bdist_dumb.py | |
parent | c318260a7121149153dcfc213a36ac81d8266875 (diff) | |
download | cpython-2544f51036c51d87be53f6a5e35e867c8333378a.zip cpython-2544f51036c51d87be53f6a5e35e867c8333378a.tar.gz cpython-2544f51036c51d87be53f6a5e35e867c8333378a.tar.bz2 |
OS/2 patches by Andrew I MacIntyre for distutils.
Closes patch #435381.
Diffstat (limited to 'Lib/distutils/command/bdist_dumb.py')
-rw-r--r-- | Lib/distutils/command/bdist_dumb.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_dumb.py b/Lib/distutils/command/bdist_dumb.py index dbe862b..b627a86 100644 --- a/Lib/distutils/command/bdist_dumb.py +++ b/Lib/distutils/command/bdist_dumb.py @@ -37,7 +37,8 @@ class bdist_dumb (Command): boolean_options = ['keep-temp', 'skip-build'] default_format = { 'posix': 'gztar', - 'nt': 'zip', } + 'nt': 'zip', + 'os2': 'zip' } def initialize_options (self): @@ -88,6 +89,12 @@ class bdist_dumb (Command): # pseudo-installation tree. 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(":", "-") + self.make_archive(os.path.join(self.dist_dir, archive_basename), self.format, root_dir=self.bdist_dir) |