Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
b7d9b126
Commit
b7d9b126
authored
May 13, 2000
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'build_bdist' to 'bdist_base', and get it by default from the
"bdist" command rather than "build".
parent
2d34b039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
command/clean.py
command/clean.py
+7
-6
No files found.
command/clean.py
View file @
b7d9b126
...
...
@@ -20,7 +20,7 @@ class clean (Command):
"build directory for all modules (default: 'build.build-lib')"
),
(
'build-temp='
,
't'
,
"temporary build directory (default: 'build.build-temp')"
),
(
'b
uild-bdist
='
,
None
,
(
'b
dist-base
='
,
None
,
"temporary directory for built distributions"
),
(
'all'
,
'a'
,
"remove all build output, not just temporary by-products"
)
...
...
@@ -30,7 +30,7 @@ class clean (Command):
self
.
build_base
=
None
self
.
build_lib
=
None
self
.
build_temp
=
None
self
.
b
uild_bdist
=
None
self
.
b
dist_base
=
None
self
.
all
=
None
def
finalize_options
(
self
):
...
...
@@ -44,8 +44,9 @@ class clean (Command):
self
.
set_undefined_options
(
'build'
,
(
'build_base'
,
'build_base'
),
(
'build_lib'
,
'build_lib'
),
(
'build_temp'
,
'build_temp'
),
(
'build_bdist'
,
'build_bdist'
))
(
'build_temp'
,
'build_temp'
))
self
.
set_undefined_options
(
'bdist'
,
(
'bdist_base'
,
'bdist_base'
))
def
run
(
self
):
# remove the build/temp.<plat> directory (unless it's already
...
...
@@ -62,8 +63,8 @@ class clean (Command):
# built distribution will have its own subdirectory under
# "build/bdist", but they'll be taken care of by
# 'remove_tree()'.
if
os
.
path
.
exists
(
self
.
b
uild_bdist
):
remove_tree
(
self
.
b
uild_bdist
,
self
.
verbose
,
self
.
dry_run
)
if
os
.
path
.
exists
(
self
.
b
dist_base
):
remove_tree
(
self
.
b
dist_base
,
self
.
verbose
,
self
.
dry_run
)
# just for the heck of it, try to remove the base build directory:
# we might have emptied it right now, but if not we don't care
...
...
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