Ticket #37960: patch-setup.py.diff
File patch-setup.py.diff, 990 bytes (added by petrrr, 12 years ago) |
---|
-
setup.
old new 362 362 # otherwise we just use the original compile method 363 363 UnixCCompiler.linker_so = None 364 364 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")] 367 367 cc_args = ['-c', '-fno-underscoring'] 368 368 if sys.platform == 'darwin': 369 369 self.compiler_so = _darwin_compiler_fixup(self.compiler_so, … … 607 607 # setup Fortran extension 608 608 src = os.path.join('obspy', 'taup', 'src') + os.sep 609 609 lib = MyExtension(lib_name, 610 libraries=['gfortran'],611 610 sources=[src + 'emdlv.f', src + 'libtau.f', 612 611 src + 'ttimes_subrout.f']) 613 612 return lib