Error building obspy master branch

I am getting a link error building the obspy master branch.

The build is looking for It looks in obspy/core/util/../../lib/
but the library is in

The full backtrace from running "python build" is below.


Traceback (most recent call last):
   File "", line 780, in <module>
   File "", line 749, in setupPackage
   File "/usr/lib/python2.7/dist-packages/numpy/distutils/", line 169, in setup
     return old_setup(**new_attr)
   File "/usr/lib/python2.7/distutils/", line 151, in setup
   File "/usr/lib/python2.7/distutils/", line 953, in run_commands
   File "/usr/lib/python2.7/distutils/", line 972, in run_command
   File "/usr/lib/python2.7/dist-packages/numpy/distutils/command/", line 39, in run
   File "/usr/lib/python2.7/distutils/command/", line 128, in run
   File "/usr/lib/python2.7/distutils/", line 326, in run_command
   File "/usr/lib/python2.7/distutils/", line 972, in run_command
   File "", line 699, in run
   File "", line 673, in build_taup_models
     with patch('obspy.core.util.libnames._load_CDLL') as load:
   File "build/bdist.linux-x86_64/egg/", line 1252, in __enter__
   File "build/bdist.linux-x86_64/egg/", line 1414, in <lambda>
   File "build/bdist.linux-x86_64/egg/", line 1098, in _importer
   File "/tools/common/python-tools/src/obspy-dev/obspy/", line 47, in <module>
     read.__doc__ % make_format_plugin_table("waveform", "read", numspaces=4)
   File "/tools/common/python-tools/src/obspy-dev/obspy/core/util/", line 473, in make_format_plugin_table
     "obspy.plugin.%s.%s" % (group, name), method)
   File "/usr/lib/python2.7/dist-packages/", line 351, in load_entry_point
     return get_distribution(dist).load_entry_point(group, name)
   File "/usr/lib/python2.7/dist-packages/", line 2363, in load_entry_point
     return ep.load()
   File "/usr/lib/python2.7/dist-packages/", line 2088, in load
     entry = __import__(self.module_name, globals(),globals(), ['__name__'])
   File "/tools/common/python-tools/src/obspy-dev/obspy/mseed/", line 19, in <module>
     from obspy.mseed import util
   File "/tools/common/python-tools/src/obspy-dev/obspy/mseed/", line 23, in <module>
     from obspy.mseed.headers import (ENCODINGS, ENDIAN,
   File "/tools/common/python-tools/src/obspy-dev/obspy/mseed/", line 22, in <module>
     clibmseed = _load_CDLL("mseed")
   File "/tools/common/python-tools/src/obspy-dev/obspy/core/util/", line 97, in _load_CDLL
     raise ImportError(msg)
ImportError: Could not load shared library "".

/tools/common/python-tools/src/obspy-dev/obspy/core/util/../../lib/ cannot open shared object file: No such file or directory

Hi Brad,

Can you try with this PR applied?