summaryrefslogtreecommitdiff
path: root/numpy/distutils/exec_command.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-04-01 14:25:19 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-04-01 14:25:19 +0000
commit6cc9da7aea03502abbccf7454f73e0fc308358f5 (patch)
tree2a48134fbdfa2879fe1a9b0713746bc3a736e686 /numpy/distutils/exec_command.py
parent8680d6f6df88d32e07a25c441fa29ac7a1095919 (diff)
downloadnumpy-6cc9da7aea03502abbccf7454f73e0fc308358f5.tar.gz
Reorg. code so that numpy.distutils could be used from cwd that contains math.py.
Diffstat (limited to 'numpy/distutils/exec_command.py')
-rw-r--r--numpy/distutils/exec_command.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py
index 43ec4bf4e..d65d63701 100644
--- a/numpy/distutils/exec_command.py
+++ b/numpy/distutils/exec_command.py
@@ -51,7 +51,6 @@ __all__ = ['exec_command','find_executable']
import os
import re
import sys
-import tempfile
from numpy.distutils.misc_util import is_sequence
@@ -269,6 +268,7 @@ def _exec_command_posix( command,
use_shell = None,
use_tee = None,
**env ):
+ import tempfile
log.debug('_exec_command_posix(...)')
if is_sequence(command):
@@ -320,6 +320,7 @@ def _exec_command_posix( command,
def _exec_command_python(command,
exec_command_dir='', **env):
+ import tempfile
log.debug('_exec_command_python(...)')
python_exe = get_pythonexe()
@@ -600,6 +601,7 @@ def test_posix(**kws):
print 'ok'
def test_execute_in(**kws):
+ import tempfile
pythonexe = get_pythonexe()
tmpfile = tempfile.mktemp()
fn = os.path.basename(tmpfile)