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
a0e18357
Kaydet (Commit)
a0e18357
authored
Mar 07, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rearrange some stuff so that the warning for unknown modules is also
issued on Windows.
üst
31d53ed9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
freeze.py
Tools/freeze/freeze.py
+21
-17
No files found.
Tools/freeze/freeze.py
Dosyayı görüntüle @
a0e18357
...
...
@@ -279,22 +279,7 @@ def main():
os
.
unlink
(
frozen_c
)
os
.
rename
(
backup
,
frozen_c
)
# windows gets different treatment
if
win
:
# Taking a shortcut here...
import
winmakemakefile
outfp
=
open
(
makefile
,
'w'
)
try
:
winmakemakefile
.
makemakefile
(
outfp
,
locals
(),
[
frozenmain_c
,
os
.
path
.
basename
(
frozen_c
)],
os
.
path
.
basename
(
target
))
finally
:
outfp
.
close
()
return
# generate config.c and Makefile
# look for unfrozen modules (builtin and of unknown origin)
builtins
=
[]
unknown
=
[]
mods
=
dict
.
keys
()
...
...
@@ -307,17 +292,36 @@ def main():
else
:
unknown
.
append
(
mod
)
# search for unknown modules in extensions directories (not on Windows)
addfiles
=
[]
if
unknown
:
if
unknown
and
not
win
:
addfiles
,
addmods
=
\
checkextensions
.
checkextensions
(
unknown
,
extensions
)
for
mod
in
addmods
:
unknown
.
remove
(
mod
)
builtins
=
builtins
+
addmods
# report unknown modules
if
unknown
:
sys
.
stderr
.
write
(
'Warning: unknown modules remain:
%
s
\n
'
%
string
.
join
(
unknown
))
# windows gets different treatment
if
win
:
# Taking a shortcut here...
import
winmakemakefile
outfp
=
open
(
makefile
,
'w'
)
try
:
winmakemakefile
.
makemakefile
(
outfp
,
locals
(),
[
frozenmain_c
,
os
.
path
.
basename
(
frozen_c
)],
os
.
path
.
basename
(
target
))
finally
:
outfp
.
close
()
return
# generate config.c and Makefile
builtins
.
sort
()
infp
=
open
(
config_c_in
)
backup
=
config_c
+
'~'
...
...
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