summaryrefslogtreecommitdiff
path: root/science/py-obspy/files/patch-setup.py
blob: d37903bca129c5a6d7498b36fd73d4cbc6937a60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- ./setup.py.orig	2013-06-28 18:07:26.000000000 -0300
+++ ./setup.py	2013-11-27 17:04:07.589319517 -0200
@@ -27,7 +27,6 @@
 from distutils.unixccompiler import UnixCCompiler
 from setuptools import find_packages, setup
 from setuptools.extension import Extension
-import distribute_setup
 import glob
 import os
 import platform
@@ -370,8 +369,8 @@
             # otherwise we just use the original compile method
             UnixCCompiler.linker_so = None
             return self._original_compile(obj, src, *args, **kwargs)
-        UnixCCompiler.linker_so = ["gfortran"]
-        self.compiler_so = ["gfortran"]
+        UnixCCompiler.linker_so = ["gfortran46"]
+        self.compiler_so = ["gfortran46"]
         cc_args = ['-c', '-fno-underscoring']
         cc_args.append('-fPIC')
         try:
@@ -629,8 +628,6 @@
 
 
 def setupPackage(gfortran=True, ccompiler=True):
-    # automatically install distribute if the user does not have it installed
-    distribute_setup.use_setuptools()
     # use lib2to3 for Python 3.x
     if sys.version_info[0] == 3:
         convert2to3()