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
612eb09a
Kaydet (Commit)
612eb09a
authored
Tem 23, 2004
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Factored out a method to determine the final installer filename.
üst
6fa2474b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+14
-9
No files found.
Lib/distutils/command/bdist_wininst.py
Dosyayı görüntüle @
612eb09a
...
...
@@ -224,15 +224,7 @@ class bdist_wininst (Command):
cfgdata
=
self
.
get_inidata
()
if
self
.
target_version
:
# if we create an installer for a specific python version,
# it's better to include this in the name
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"
%
s.win32-py
%
s.exe"
%
(
fullname
,
self
.
target_version
))
else
:
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"
%
s.win32.exe"
%
fullname
)
installer_name
=
self
.
get_installer_filename
(
fullname
)
self
.
announce
(
"creating
%
s"
%
installer_name
)
if
bitmap
:
...
...
@@ -280,6 +272,19 @@ class bdist_wininst (Command):
# create_exe()
def
get_installer_filename
(
self
,
fullname
):
# Factored out to allow overriding in subclasses
if
self
.
target_version
:
# if we create an installer for a specific python version,
# it's better to include this in the name
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"
%
s.win32-py
%
s.exe"
%
(
fullname
,
self
.
target_version
))
else
:
installer_name
=
os
.
path
.
join
(
self
.
dist_dir
,
"
%
s.win32.exe"
%
fullname
)
# get_installer_filename()
def
get_exe_bytes
(
self
):
from
distutils.msvccompiler
import
get_build_version
# If a target-version other than the current version has been
...
...
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