Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
52e399c9
Kaydet (Commit)
52e399c9
authored
May 13, 2000
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Harry Henry Gebel: add support for the 'bdist_rpm' command, specifically
the 'no_format_option' class attribute.
üst
d5b53df1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bdist.py
Lib/distutils/command/bdist.py
+7
-2
No files found.
Lib/distutils/command/bdist.py
Dosyayı görüntüle @
52e399c9
...
...
@@ -22,6 +22,9 @@ class bdist (Command):
"(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,
# Debian-ish Linux, Solaris, FreeBSD, ..., Windows, Mac OS.
default_format
=
{
'posix'
:
'gztar'
,
...
...
@@ -31,6 +34,7 @@ class bdist (Command):
'bztar'
:
'bdist_dumb'
,
'ztar'
:
'bdist_dumb'
,
'tar'
:
'bdist_dumb'
,
'rpm'
:
'bdist_rpm'
,
'zip'
:
'bdist_dumb'
,
}
...
...
@@ -63,8 +67,9 @@ class bdist (Command):
raise
DistutilsOptionError
,
\
"invalid archive format '
%
s'"
%
self
.
format
sub_cmd
=
self
.
find_peer
(
cmd_name
)
sub_cmd
.
format
=
self
.
format
if
cmd_name
not
in
self
.
no_format_option
:
sub_cmd
=
self
.
find_peer
(
cmd_name
)
sub_cmd
.
format
=
self
.
format
self
.
run_peer
(
cmd_name
)
# 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