[Scipy-svn] r5438 - branches/0.7.x/scipy/weave
scipy-svn at scipy.org
scipy-svn at scipy.org
Mon Jan 12 02:26:13 EST 2009
Author: cdavid
Date: 2009-01-12 01:26:09 -0600 (Mon, 12 Jan 2009)
New Revision: 5438
Modified:
branches/0.7.x/scipy/weave/build_tools.py
Log:
Do not use close_fds - not supported on windows.
Modified: branches/0.7.x/scipy/weave/build_tools.py
===================================================================
--- branches/0.7.x/scipy/weave/build_tools.py 2009-01-12 06:55:47 UTC (rev 5437)
+++ branches/0.7.x/scipy/weave/build_tools.py 2009-01-12 07:26:09 UTC (rev 5438)
@@ -344,8 +344,8 @@
result = 0
cmd = [str(name), '-v']
try:
- p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT, close_fds=True)
+ p = subprocess.Popen(cmd, True, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT)
str_result = p.stdout.read()
#print str_result
if 'Reading specs' in str_result:
@@ -364,7 +364,7 @@
result = 0
try:
p = subprocess.Popen(['cl'], shell=True, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT, close_fds=True)
+ stderr=subprocess.STDOUT)
str_result = p.stdout.read()
#print str_result
if 'Microsoft' in str_result:
@@ -387,7 +387,7 @@
def run_command(command):
""" not sure how to get exit status on nt. """
p = subprocess.Popen(['cl'], shell=True, stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT, close_fds=True)
+ stderr=subprocess.STDOUT)
text = p.stdout.read()
return 0, text
else:
@@ -465,7 +465,7 @@
if self.gcc_version is None:
import re
p = subprocess.Popen(['gcc', ' -dumpversion'], shell=True,
- stdout=subprocess.PIPE, close_fds=True)
+ stdout=subprocess.PIPE)
out_string = p.stdout.read()
result = re.search('(\d+\.\d+)',out_string)
if result:
More information about the Scipy-svn
mailing list