New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error during fortran version detection #11822
Comments
I found the immediate culprit. during compiler detection _exec_command (at numpy/distutils/exec_command.py:223) For some reason zsh adds 'OK' if called using Popen, this breaks version detection logic and other things (subsequent compilation failed then I tried dirty-patching).
Behavior is different if the same command is run from shell:
In my case |
I'll wait until you are satisfied that you have found the problem. Note that we search the version strings, so it is certainly possible to fix up that part of them. |
Yeah, of course at first I tried to fix version search. Other weird problems appeared during subsequent compilation, like this:
I guess the most conservative fix is just to use /bin/sh if it's available. Or be prepared for surprises zsh,ksh and others may prepare. |
Why does it even need the shell wrapper? |
This should be fixed; cannot reproduce. |
During installation of DIRECT optimizer I stumbled upon an error apparently related to numpy's distutils:
I tried gfortran5 with the similar result.
Version information:
The text was updated successfully, but these errors were encountered: