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
23c48a12
Kaydet (Commit)
23c48a12
authored
Eyl 10, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #808120: Add --force-arch=ARCH to bdist_rpm.py.
üst
641d6481
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
bdist_rpm.py
Lib/distutils/command/bdist_rpm.py
+12
-3
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-2
No files found.
Lib/distutils/command/bdist_rpm.py
Dosyayı görüntüle @
23c48a12
...
...
@@ -120,6 +120,9 @@ class bdist_rpm (Command):
(
'verify-script='
,
None
,
"Specify a script for the VERIFY phase of the RPM build"
),
# Allow a packager to explicitly force an architecture
(
'force-arch='
,
None
,
"Force an architecture onto the RPM build process"
),
]
boolean_options
=
[
'keep-temp'
,
'use-rpm-opt-flags'
,
'rpm3-mode'
]
...
...
@@ -170,6 +173,8 @@ class bdist_rpm (Command):
self
.
use_rpm_opt_flags
=
1
self
.
rpm3_mode
=
1
self
.
force_arch
=
None
# initialize_options()
...
...
@@ -250,6 +255,7 @@ class bdist_rpm (Command):
self
.
ensure_string_list
(
'build_requires'
)
self
.
ensure_string_list
(
'obsoletes'
)
self
.
ensure_string
(
'force_arch'
)
# finalize_package_data ()
...
...
@@ -389,9 +395,12 @@ class bdist_rpm (Command):
'BuildRoot:
%
{_tmppath}/
%
{name}-
%
{version}-
%
{release}-buildroot'
,
'Prefix:
%
{_prefix}'
,
])
# noarch if no extension modules
if
not
self
.
distribution
.
has_ext_modules
():
spec_file
.
append
(
'BuildArchitectures: noarch'
)
if
not
self
.
force_arch
:
# noarch if no extension modules
if
not
self
.
distribution
.
has_ext_modules
():
spec_file
.
append
(
'BuildArch: noarch'
)
else
:
spec_file
.
append
(
'BuildArch:
%
s'
%
self
.
force_arch
)
for
field
in
(
'Vendor'
,
'Packager'
,
...
...
Misc/ACKS
Dosyayı görüntüle @
23c48a12
...
...
@@ -91,6 +91,7 @@ Lee Busby
Ralph Butler
Jp Calderone
Daniel Calvelo
Tony Campbell
Brett Cannon
Mike Carlton
Terry Carroll
...
...
Misc/NEWS
Dosyayı görüntüle @
23c48a12
...
...
@@ -22,8 +22,9 @@ Extension modules
Library
-------
- bdist_rpm now supports command line options {pre,post}-install,
{pre,post}-uninstall, and {prep,build,install,clean,verify}-script.
- bdist_rpm now supports command line options --force-arch,
{pre,post}-install, {pre,post}-uninstall, and
{prep,build,install,clean,verify}-script.
- SF patch #998993: The UTF-8 and the UTF-16 stateful decoders now support
decoding incomplete input (when the input stream is temporarily exhausted).
``codecs.StreamReader`` now implements buffering, which enables proper
...
...
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