[New-bugs-announce] [issue16454] Mostly for discussion: _winapi as builtin for bootstrapping distutils.

Ray Donnelly report at bugs.python.org
Sun Nov 11 22:49:34 CET 2012

New submission from Ray Donnelly:

I'm submitting this patch as it was suggested I do so by Antoine Pitrou on #python-dev. As such, it's more a point of discussion than a patch I'm trying to get merged (for one thing, my build is a MinGW GCC compiled and I've not considered the MSVC Windows build).

I ran into a problem with a customisation I made to cygwinccompiler.py where I wanted to use Popen to ask gcc where it's ld is:

out = Popen(gcc+' --print-prog-name ld', shell=True, stdout=PIPE).stdout

This has worked fine before on 2.7.3, but with 3.3.0, subprocess can't be imported as _winapi isn't builtin, instead, it's built by setup.py as a module.

So is this the right thing to do? Or is distutils not supposed to use subprocess during bootstrapping?

files: _winapi_as_builtin_for_distutils_bootstrap.patch
keywords: patch
messages: 175393
nosy: Ray.Donnelly, pitrou, sbt
priority: normal
severity: normal
status: open
title: Mostly for discussion: _winapi as builtin for bootstrapping distutils.
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file27962/_winapi_as_builtin_for_distutils_bootstrap.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list