From c4f4f080fc54867bd1ad562d446b3ba1c3c8aff1 Mon Sep 17 00:00:00 2001 From: Roumen Petrov Date: Sun, 3 Mar 2013 14:49:16 +0200 Subject: [PATCH 21/24] MINGW: avoid circular dependency from time module during native build of extentions --- Lib/distutils/cygwinccompiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py index 3da7b40..6638a6f 100644 --- a/Lib/distutils/cygwinccompiler.py +++ b/Lib/distutils/cygwinccompiler.py @@ -8,7 +8,6 @@ the Mingw32CCompiler class which handles the mingw* ports of GCC. import os import sys import copy -from subprocess import Popen, PIPE import re from distutils.unixccompiler import UnixCCompiler @@ -249,6 +248,7 @@ def _find_exe_version(cmd): executable = cmd.split()[0] if find_executable(executable) is None: return None + from subprocess import Popen, PIPE out = Popen(cmd, shell=True, stdout=PIPE).stdout try: out_string = out.read() -- 1.7.12.1