Ticket #37960: patch-setup.py.diff

File patch-setup.py.diff, 990 bytes (added by petrrr, 12 years ago)

The patchfile for setup.py

  • setup.

    old new  
    362362            # otherwise we just use the original compile method
    363363            UnixCCompiler.linker_so = None
    364364            return self._original_compile(obj, src, *args, **kwargs)
    365         UnixCCompiler.linker_so = ["gfortran"]
    366         self.compiler_so = ["gfortran"]
     365        UnixCCompiler.linker_so = [os.environ.get("F77")]
     366        self.compiler_so = [os.environ.get("F77")]
    367367        cc_args = ['-c', '-fno-underscoring']
    368368        if sys.platform == 'darwin':
    369369            self.compiler_so = _darwin_compiler_fixup(self.compiler_so,
     
    607607    # setup Fortran extension
    608608    src = os.path.join('obspy', 'taup', 'src') + os.sep
    609609    lib = MyExtension(lib_name,
    610                       libraries=['gfortran'],
    611610                      sources=[src + 'emdlv.f', src + 'libtau.f',
    612611                               src + 'ttimes_subrout.f'])
    613612    return lib