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
2e5b0f21
Kaydet (Commit)
2e5b0f21
authored
Kas 04, 1999
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapted to new macmudulefinder.process() API. (jvr)
üst
8ff52764
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
macfreeze.py
Mac/Tools/macfreeze/macfreeze.py
+9
-6
macgen_bin.py
Mac/Tools/macfreeze/macgen_bin.py
+9
-2
No files found.
Mac/Tools/macfreeze/macfreeze.py
Dosyayı görüntüle @
2e5b0f21
...
@@ -38,12 +38,15 @@ def main():
...
@@ -38,12 +38,15 @@ def main():
if
mustwait
:
if
mustwait
:
sys
.
exit
(
1
)
sys
.
exit
(
1
)
def
process
(
gentype
,
program
,
output
,
modules
=
[],
module_files
=
[],
debug
=
0
,
with_ifdef
=
0
):
def
process
(
gentype
,
program
,
output
,
modules
=
None
,
module_files
=
None
,
debug
=
0
,
with_ifdef
=
0
):
try
:
if
modules
is
None
:
module_dict
=
macmodulefinder
.
process
(
program
,
modules
,
module_files
,
debug
)
modules
=
[]
except
macmodulefinder
.
Missing
,
arg
:
if
module_files
is
None
:
arg
.
sort
()
module_files
=
[]
print
'** Missing modules:'
,
string
.
join
(
arg
,
' '
)
module_dict
,
missing
=
macmodulefinder
.
process
(
program
,
modules
,
module_files
,
debug
)
if
missing
:
missing
.
sort
()
print
'** Missing modules:'
,
string
.
join
(
missing
,
' '
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
#
#
# And generate
# And generate
...
...
Mac/Tools/macfreeze/macgen_bin.py
Dosyayı görüntüle @
2e5b0f21
...
@@ -12,7 +12,7 @@ import cfmfile
...
@@ -12,7 +12,7 @@ import cfmfile
import
buildtools
import
buildtools
def
generate
(
input
,
output
,
module_dict
=
None
,
architecture
=
'fat'
,
debug
=
0
):
def
generate
(
input
,
output
,
module_dict
=
None
,
architecture
=
'fat'
,
debug
=
0
):
# try to remove old file
# try to remove old file
try
:
try
:
os
.
remove
(
output
)
os
.
remove
(
output
)
...
@@ -22,7 +22,14 @@ def generate(input, output, module_dict = None, architecture = 'fat', debug=0):
...
@@ -22,7 +22,14 @@ def generate(input, output, module_dict = None, architecture = 'fat', debug=0):
if
module_dict
is
None
:
if
module_dict
is
None
:
import
macmodulefinder
import
macmodulefinder
print
"Searching for modules..."
print
"Searching for modules..."
module_dict
=
macmodulefinder
.
process
(
input
,
[],
[],
1
)
module_dict
,
missing
=
macmodulefinder
.
process
(
input
,
[],
[],
1
)
if
missing
:
import
EasyDialogs
missing
.
sort
()
answer
=
EasyDialogs
.
AskYesNoCancel
(
"Some modules could not be found; continue anyway?
\n
(
%
s)"
%
string
.
join
(
missing
,
", "
))
if
answer
<>
1
:
sys
.
exit
(
0
)
applettemplatepath
=
buildtools
.
findtemplate
()
applettemplatepath
=
buildtools
.
findtemplate
()
corepath
=
findpythoncore
()
corepath
=
findpythoncore
()
...
...
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