• Kirill Smelkov's avatar
    Fix develop install for setuptools >= 19.4 · 2ce96a76
    Kirill Smelkov authored
    Starting from setuptools 19.4, more concrete from the following commit:
    
        https://github.com/pypa/setuptools/commit/ebc54982
    
    setuptools sorts namespaced packages .__path__ to be in sync with sys.path .
    That however breaks for wendelin.core used from in-tree or installed in
    development mode, because we are doing tricks in top-level import redirector
    (see e870781d "Top-level in-tree import redirector"):
    
        (z+numpy.v2)kirr@teco:~/tmp/trashme/wendelin.core$ python -c 'import wendelin'
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "wendelin.py", line 39, in <module>
            __import__('pkg_resources').declare_namespace(__name__)
          File "/home/kirr/src/wendelin/venv/z+numpy.v2/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2081, in declare_namespace
            _handle_ns(packageName, path_item)
          File "/home/kirr/src/wendelin/venv/z+numpy.v2/local/lib/python2.7/site-package...
    2ce96a76