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
19e02fc6
Kaydet (Commit)
19e02fc6
authored
Şub 05, 2003
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removing old junk
üst
ab564eea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
makeclean.py
Mac/scripts/makeclean.py
+0
-60
No files found.
Mac/scripts/makeclean.py
deleted
100644 → 0
Dosyayı görüntüle @
ab564eea
""" ***DANGEROUS***
script to remove
all results of a
build process.
***Don't***
run this if you are
***not***
building Python
from the source
!!!
"""
import
macfs
import
EasyDialogs
import
os
import
sys
import
re
sweepfiletypes
=
[
'APPL'
,
# applications
'Atmp'
,
# applet template
'shlb'
,
# shared libs
'MPSY'
,
# SYM and xSYM files
'PYC '
,
# .pyc files
]
sweepfolderre
=
re
.
compile
(
r"(.*) Data$"
)
def
remove
(
top
):
if
os
.
path
.
isdir
(
top
):
for
name
in
os
.
listdir
(
top
):
path
=
os
.
path
.
join
(
top
,
name
)
remove
(
path
)
os
.
remove
(
top
)
def
walk
(
top
):
if
os
.
path
.
isdir
(
top
):
m
=
sweepfolderre
.
match
(
top
)
if
m
and
os
.
path
.
exists
(
m
.
group
(
1
)
+
".prj"
):
print
"removing folder:"
,
top
remove
(
top
)
else
:
for
name
in
os
.
listdir
(
top
):
path
=
os
.
path
.
join
(
top
,
name
)
walk
(
path
)
else
:
fss
=
macfs
.
FSSpec
(
top
)
cr
,
tp
=
fss
.
GetCreatorType
()
if
tp
in
sweepfiletypes
and
top
<>
sys
.
executable
:
print
"removing file: "
,
top
remove
(
top
)
pathname
=
EasyDialogs
.
AskFolder
(
message
=
"Please locate the Python home directory"
)
if
pathname
:
walk
(
pathname
)
sys
.
exit
(
1
)
# so we see the results
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