Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
19e02fc6
Commit
19e02fc6
authored
Feb 05, 2003
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing old junk
parent
ab564eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
Mac/scripts/makeclean.py
Mac/scripts/makeclean.py
+0
-60
No files found.
Mac/scripts/makeclean.py
deleted
100644 → 0
View file @
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