summaryrefslogtreecommitdiff
path: root/numpy/distutils/core.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-11-19 20:56:57 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-11-19 20:56:57 +0000
commit7078ccf341a5dabda585c3a8a5fca397ea73409c (patch)
tree2f72352d0be330bc71869dffdb19482bb32b76f7 /numpy/distutils/core.py
parentb1f12018b15b585f11b2dc96c122381fac1cdad8 (diff)
downloadnumpy-7078ccf341a5dabda585c3a8a5fca397ea73409c.tar.gz
Skip interactive mode when using script_args argument.
Diffstat (limited to 'numpy/distutils/core.py')
-rw-r--r--numpy/distutils/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/core.py b/numpy/distutils/core.py
index cd8854d2a..f0d734299 100644
--- a/numpy/distutils/core.py
+++ b/numpy/distutils/core.py
@@ -103,7 +103,7 @@ def _exit_interactive_session(_cache=[]):
def setup(**attr):
- if len(sys.argv)<=1:
+ if len(sys.argv)<=1 and not attr.get('script_args',[]):
from interactive import interactive_sys_argv
import atexit
atexit.register(_exit_interactive_session)