diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-11-21 10:08:46 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-11-21 10:08:46 +0000 |
commit | 34a21aee2e40d73183a4a1065cd087d2699e28ff (patch) | |
tree | 03cd125da35c1ea0c63e8d1775d4a9dd0100897c /scipy_distutils/exec_command.py | |
parent | 6f974f1368fc28b4e84817a9610501cea9709695 (diff) | |
download | numpy-34a21aee2e40d73183a4a1065cd087d2699e28ff.tar.gz |
Bug fixes in from_template. Added docs for livedocs.
Diffstat (limited to 'scipy_distutils/exec_command.py')
-rw-r--r-- | scipy_distutils/exec_command.py | 91 |
1 files changed, 46 insertions, 45 deletions
diff --git a/scipy_distutils/exec_command.py b/scipy_distutils/exec_command.py index 40fcdcb79..6c5554bba 100644 --- a/scipy_distutils/exec_command.py +++ b/scipy_distutils/exec_command.py @@ -1,49 +1,50 @@ #!/usr/bin/env python -# -# exec_command -# -# Implements exec_command function that is (almost) equivalent to -# commands.getstatusoutput function but on NT, DOS systems the -# returned status is actually correct (though, the returned status -# values may be different by a factor). In addition, exec_command -# takes keyword arguments for (re-)defining environment variables. -# -# Provides functions: -# exec_command --- execute command in a specified directory and -# in the modified environment. -# splitcmdline --- inverse of ' '.join(argv) -# find_executable --- locate a command using info from environment -# variable PATH. Equivalent to posix `which` -# command. -# -# Author: Pearu Peterson <pearu@cens.ioc.ee> -# Created: 11 January 2003 -# -# Requires: Python 2.x -# -# Succesfully tested on: -# os.name | sys.platform | comments -# --------+--------------+---------- -# posix | linux2 | Debian (sid) Linux, Python 2.1.3+, 2.2.3+, 2.3.3 -# PyCrust 0.9.3, Idle 1.0.2 -# posix | linux2 | Red Hat 9 Linux, Python 2.1.3, 2.2.2, 2.3.2 -# posix | sunos5 | SunOS 5.9, Python 2.2, 2.3.2 -# posix | darwin | Darwin 7.2.0, Python 2.3 -# nt | win32 | Windows Me -# Python 2.3(EE), Idle 1.0, PyCrust 0.7.2 -# Python 2.1.1 Idle 0.8 -# nt | win32 | Windows 98, Python 2.1.1. Idle 0.8 -# nt | win32 | Cygwin 98-4.10, Python 2.1.1(MSC) - echo tests -# fail i.e. redefining environment variables may -# not work. FIXED: don't use cygwin echo! -# Comment: also `cmd /c echo` will not work -# but redefining environment variables do work. -# posix | cygwin | Cygwin 98-4.10, Python 2.3.3(cygming special) -# nt | win32 | Windows XP, Python 2.3.3 -# -# Known bugs: -# - Tests, that send messages to stderr, fail when executed from MSYS prompt -# because the messages are lost at some point. +""" +exec_command + +Implements exec_command function that is (almost) equivalent to +commands.getstatusoutput function but on NT, DOS systems the +returned status is actually correct (though, the returned status +values may be different by a factor). In addition, exec_command +takes keyword arguments for (re-)defining environment variables. + +Provides functions: + exec_command --- execute command in a specified directory and + in the modified environment. + splitcmdline --- inverse of ' '.join(argv) + find_executable --- locate a command using info from environment + variable PATH. Equivalent to posix `which` + command. + +Author: Pearu Peterson <pearu@cens.ioc.ee> +Created: 11 January 2003 + +Requires: Python 2.x + +Succesfully tested on: + os.name | sys.platform | comments + --------+--------------+---------- + posix | linux2 | Debian (sid) Linux, Python 2.1.3+, 2.2.3+, 2.3.3 + PyCrust 0.9.3, Idle 1.0.2 + posix | linux2 | Red Hat 9 Linux, Python 2.1.3, 2.2.2, 2.3.2 + posix | sunos5 | SunOS 5.9, Python 2.2, 2.3.2 + posix | darwin | Darwin 7.2.0, Python 2.3 + nt | win32 | Windows Me + Python 2.3(EE), Idle 1.0, PyCrust 0.7.2 + Python 2.1.1 Idle 0.8 + nt | win32 | Windows 98, Python 2.1.1. Idle 0.8 + nt | win32 | Cygwin 98-4.10, Python 2.1.1(MSC) - echo tests + fail i.e. redefining environment variables may + not work. FIXED: don't use cygwin echo! + Comment: also `cmd /c echo` will not work + but redefining environment variables do work. + posix | cygwin | Cygwin 98-4.10, Python 2.3.3(cygming special) + nt | win32 | Windows XP, Python 2.3.3 + +Known bugs: +- Tests, that send messages to stderr, fail when executed from MSYS prompt + because the messages are lost at some point. +""" __all__ = ['exec_command','find_executable'] |