File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2727OTHER DEALINGS IN THE SOFTWARE.
2828"""
2929
30- __version__ = '0.13 '
30+ __version__ = '0.14 '
3131__license__ = __doc__
3232__project_url__ = 'http://code.google.com/p/winpython'
3333__forum_url__ = 'http://groups.google.com/group/winpython'
Original file line number Diff line number Diff line change @@ -404,6 +404,15 @@ def uninstall(self, package):
404404 elif osp .isdir (path ):
405405 if self .verbose :
406406 print ("rmdir: %s" % fname )
407+ pycache = osp .join (path , '__pycache__' )
408+ if osp .exists (pycache ):
409+ try :
410+ shutil .rmtree (pycache , onerror = utils .onerror )
411+ if self .verbose :
412+ print ("rmtree: %s" % pycache )
413+ except WindowsError :
414+ print ("Directory %s could not be removed" \
415+ % pycache , file = sys .stderr )
407416 try :
408417 os .rmdir (path )
409418 except OSError :
You can’t perform that action at this time.
0 commit comments