Skip to content

Commit 31e5f41

Browse files
committed
Merge pull request #1855 from methane/patch-1
Overwrite old scripts when installing from wheel.
2 parents a1dce51 + 4950c76 commit 31e5f41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pip/wheel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ def is_entrypoint_wrapper(name):
242242

243243
maker = ScriptMaker(None, scheme['scripts'])
244244

245+
# Ensure old scripts are overwritten.
246+
# See https://github.com/pypa/pip/issues/1800
247+
maker.clobber = True
248+
245249
# Ensure we don't generate any variants for scripts because this is almost
246250
# never what somebody wants.
247251
# See https://bitbucket.org/pypa/distlib/issue/35/

0 commit comments

Comments
 (0)