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

Conversation

amercader
Copy link

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

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 added a commit to okfn/docker-fiware-ckan that referenced this pull request Jan 29, 2016
Otherwise ckanext-oauth2 installation fails.
See conwetlab/ckanext-oauth2#7 for details
@aitormagan
Copy link
Contributor

This bug is solved in setuptools 19.6.2. Anyway, I cannot reproduce the problem. I have installed several versions of setuptools and the installation process (python setup.py install) is working in all of them. Do you still have the same problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants