Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d18c9d9a
Commit
d18c9d9a
authored
May 13, 2000
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harry Henry Gebel: add support for the 'bdist_rpm' command, specifically
the 'no_format_option' class attribute.
parent
12f0562f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Lib/distutils/command/bdist.py
Lib/distutils/command/bdist.py
+7
-2
No files found.
Lib/distutils/command/bdist.py
View file @
d18c9d9a
...
@@ -22,6 +22,9 @@ class bdist (Command):
...
@@ -22,6 +22,9 @@ class bdist (Command):
"(tar, ztar, gztar, bztar, zip, ... )"
),
"(tar, ztar, gztar, bztar, zip, ... )"
),
]
]
# The following commands do not take a format option from bdist
no_format_option
=
(
'bdist_rpm'
,)
# This won't do in reality: will need to distinguish RPM-ish Linux,
# This won't do in reality: will need to distinguish RPM-ish Linux,
# Debian-ish Linux, Solaris, FreeBSD, ..., Windows, Mac OS.
# Debian-ish Linux, Solaris, FreeBSD, ..., Windows, Mac OS.
default_format
=
{
'posix'
:
'gztar'
,
default_format
=
{
'posix'
:
'gztar'
,
...
@@ -31,6 +34,7 @@ class bdist (Command):
...
@@ -31,6 +34,7 @@ class bdist (Command):
'bztar'
:
'bdist_dumb'
,
'bztar'
:
'bdist_dumb'
,
'ztar'
:
'bdist_dumb'
,
'ztar'
:
'bdist_dumb'
,
'tar'
:
'bdist_dumb'
,
'tar'
:
'bdist_dumb'
,
'rpm'
:
'bdist_rpm'
,
'zip'
:
'bdist_dumb'
,
}
'zip'
:
'bdist_dumb'
,
}
...
@@ -63,8 +67,9 @@ class bdist (Command):
...
@@ -63,8 +67,9 @@ class bdist (Command):
raise
DistutilsOptionError
,
\
raise
DistutilsOptionError
,
\
"invalid archive format '%s'"
%
self
.
format
"invalid archive format '%s'"
%
self
.
format
sub_cmd
=
self
.
find_peer
(
cmd_name
)
if
cmd_name
not
in
self
.
no_format_option
:
sub_cmd
.
format
=
self
.
format
sub_cmd
=
self
.
find_peer
(
cmd_name
)
sub_cmd
.
format
=
self
.
format
self
.
run_peer
(
cmd_name
)
self
.
run_peer
(
cmd_name
)
# run()
# run()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment