]> SALOME platform Git repositories - tools/configuration.git/blob - config/patches/numpy.001_shell.patch
Salome HOME
Update configuration for version 9.7.0
[tools/configuration.git] / config / patches / numpy.001_shell.patch
1 diff -Naur numpy-1.15.1_SRC_orig/numpy/distutils/exec_command.py numpy-1.15.1_SRC_modif/numpy/distutils/exec_command.py
2 --- numpy-1.15.1_SRC_orig/numpy/distutils/exec_command.py       2018-08-19 11:17:10.000000000 +0300
3 +++ numpy-1.15.1_SRC_modif/numpy/distutils/exec_command.py      2018-09-26 11:44:07.000000000 +0300
4 @@ -234,9 +234,9 @@
5          # On POSIX, subprocess always uses /bin/sh, override
6          sh = os.environ.get('SHELL', '/bin/sh')
7          if is_sequence(command):
8 -            command = [sh, '-c', ' '.join(command)]
9 +            command = [sh, '-cf', ' '.join(command)]
10          else:
11 -            command = [sh, '-c', command]
12 +            command = [sh, '-cf', command]
13          use_shell = False
14  
15      elif os.name == 'nt' and is_sequence(command):