Remove the ext subpackage.

import segpy.ext.numpy will no longer be supported. It just doesn't play nice with a lot of Python tooling.  In future it will be
import segpy_numpy
This commit is contained in:
Robert Smallshire
2015-06-04 15:21:22 +02:00
parent 80966a18fb
commit 2049e89819
-20
View File
@@ -1,20 +0,0 @@
import pkg_resources
loaded = set()
def load_entry_points(name=None):
"""Load extension packages into the segpy.ext namespace.
Any packages registered against the 'segpy.ext' entry-point group will be
installed dynamically into the segpy.ext namespace.
"""
for entry_point in pkg_resources.iter_entry_points(group='segpy.ext', name=name):
package = entry_point.load()
if package not in loaded:
loaded.add(package)
__path__.extend(package.__path__)
package.load()
load_entry_points()