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
cbc3c959
Commit
cbc3c959
authored
Mar 06, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'path' to describe a file or directory.
parent
16a42402
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+5
-5
No files found.
setuptools/command/easy_install.py
View file @
cbc3c959
...
...
@@ -204,16 +204,16 @@ class easy_install(Command):
filename
for
filename
in
blockers
if
os
.
path
.
exists
(
filename
)
or
os
.
path
.
islink
(
filename
)
)
list
(
map
(
self
.
_delete_
filename
,
extant_blockers
))
list
(
map
(
self
.
_delete_
path
,
extant_blockers
))
def
_delete_
filename
(
self
,
filename
):
log
.
info
(
"Deleting %s"
,
filename
)
def
_delete_
path
(
self
,
path
):
log
.
info
(
"Deleting %s"
,
path
)
if
self
.
dry_run
:
return
is_tree
=
os
.
path
.
isdir
(
filename
)
and
not
os
.
path
.
islink
(
filename
)
is_tree
=
os
.
path
.
isdir
(
path
)
and
not
os
.
path
.
islink
(
path
)
remover
=
rmtree
if
is_tree
else
os
.
unlink
remover
(
filename
)
remover
(
path
)
def
finalize_options
(
self
):
if
self
.
version
:
...
...
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