8000 _shell_utils.py does not return expected result · Issue #15356 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
_shell_utils.py does not return expected result #15356
Closed
@pajarrige

Description

@pajarrige

Under Windows 7, _shell_utils.NativeParser.split (WindowsParser.split) splits executable names containing blanks.

For my Intel Fortran compiler, it should return: ['C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe']

Currently, it returns: ['C:\Program', 'Files', '(x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe']

This results in:

- info message: "Could not locate executable C:\Program", 
 - incorrect compiler run commands:
compiling Fortran 90 module sources
Fortran f77 compiler: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe /nologo /MD /nbs /names:lowercase /assume:underscore /O1 /arch:IA32 /QaxSSE3
Fortran f90 compiler: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe /nologo /MD /nbs /names:lowercase /assume:underscore /O1 /arch:IA32 /QaxSSE3
Fortran fix compiler: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe Files (x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe /nologo /MD /nbs /names:lowercase /assume:underscore /O1 /arch:IA32 /QaxSSE3
 - warning message after compile instructions (see below)

Error message:

ifort.exe:f90: D:\PAJarrige\IstDvp\Gan_API\Python\gandll\pyGanSim.f90
ifort: command line warning #10161: unrecognized source type 'Files'; object file assumed
ifort: command line warning #10161: unrecognized source type '(x86)\IntelSWTools\compilers_and_libraries_2018\windows\bin\intel64\ifort.exe'; object file assumed

Numpy/Python version information:

1.18.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0