Created
March 5, 2016 23:57
-
-
Save crowsonkb/402c5192e49d24ea7a1d to your computer and use it in GitHub Desktop.
A horrible wrapper command for gfortran, needed to build scipy against MKL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
FC = '/usr/local/bin/gfortran' | |
newargs = [] | |
eat_next_arg = False | |
for arg in sys.argv[1:]: | |
if arg == '-rpath': | |
eat_next_arg = True | |
continue | |
if eat_next_arg: | |
eat_next_arg = False | |
continue | |
newargs.append(arg) | |
ret = os.system(FC + ' ' + ' '.join(newargs)) | |
sys.exit(ret) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment