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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22730>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to