Merge branch 'ext-rework'

This commit is contained in:
Robert Smallshire
2015-06-04 22:27:49 +02:00
5 changed files with 1 additions and 30 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ import traceback
import numpy as np
from segpy.reader import create_reader
from segpy_numpy.numpy.dtypes import make_dtype
from segpy_numpy.dtypes import make_dtype
class DimensionalityError(Exception):
@@ -1,9 +1 @@
from pkgutil import extend_path
#__path__ = extend_path(__path__, __name__)
__version__ = '2.0.0a1'
def load():
pass
@@ -1 +0,0 @@
-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()