[New-bugs-announce] [issue22730] ensurepip should work with pythonw.exe

Steve Dower report at bugs.python.org
Sun Oct 26 21:24:46 CET 2014


New submission from Steve Dower:

I'd like to be able to run ensurepip in the 3.5 installer with pythonw.exe, to avoid having the console window appear.

Unfortunately, pip requires a valid value for sys.__stdout__. This patch adds a dummy value for __stdout__ that allows pip to be installed/uninstalled with pythonw.

I see no reason not to check this into default now, so just seeking a quick review from the module owners. I can also backport it to 3.4 if that's thought to be worthwhile, but I don't think the installer for 3.4 will be updated to use pythonw, so it probably doesn't matter.

----------
assignee: steve.dower
components: Installation
files: ensurepip.patch
keywords: patch
messages: 230032
nosy: dstufft, ncoghlan, steve.dower
priority: normal
severity: normal
status: open
title: ensurepip should work with pythonw.exe
versions: Python 3.5
Added file: http://bugs.python.org/file37020/ensurepip.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22730>
_______________________________________


More information about the New-bugs-announce mailing list