Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't import vars from setup.py #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 29, 2016

  1. Don't import vars from setup.py

    When using setuptools>=19.4 installation fails with an exception:
    
    Traceback (most recent call last):
    
      File "<string>", line 17, in <module>
    
      File "/home/adria/dev/pyenvs/fiware/src/ckanext-oauth2/setup.py", line 25, in <module>
    
        from ckanext.oauth2 import __version__, __description__
    
      File "ckanext/__init__.py", line 23, in <module>
    
        pkg_resources.declare_namespace(__name__)
    
      File "/home/adria/dev/pyenvs/fiware/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2229, in declare_namespace
    
        _handle_ns(packageName, path_item)
    
      File "/home/adria/dev/pyenvs/fiware/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2198, in _handle_ns
    
        path.sort(key=sort_key)
    
      File "/home/adria/dev/pyenvs/fiware/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2196, in sort_key
    
        return sys_path.index(_normalize_cached(os.sep.join(parts)))
    
    ValueError: '/home/adria/dev/pyenvs/fiware/src/ckanext-oauth2' is not in list
    
    This seems to be related with this setuptools issue:
    
    https://bitbucket.org/pypa/setuptools/issues/491/setuptools-194-breaks-pip-install-builds
    
    In any case, it can be avoided removing the imports from setup.py
    amercader committed Jan 29, 2016
    Configuration menu
    Copy the full SHA
    30671a0 View commit details
    Browse the repository at this point in the history