Distribute built from source breaks if build dir is removed

Issue #391 wontfix
Anonymous created an issue

After building Distribute 0.7.3 from source with python 2.7.5, and installing. If I remove the build directory it receive the following errors when using easy_install or pip:

File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources

It seems the pkg_resources.py / pyc files are not copied to the correct locations.

Comments (1)

  1. Jason R. Coombs

    Distribute 0.7.3 is a special packaging of distribute. It's a mostly empty package that only 'requires' setuptools >= 0.7. Because it's empty, it replaces the 'setuptools' package and 'pkg_resources' module found in earlier releases of distribute (0.6.x). Distribute 0.7.3 is only intended as a convenience to upgrade existing installations of distribute to setuptools. After it's installed, it should have left a build of setuptools in the path suitable for supplying pkg_resources.

    Obviously, that didn't happen in your case (or there's something else in your local environment that's blocking the location of pkg_resources).

    What I suggest at this point is to see if you can install the latest setuptools using the instructions on the setuptools PyPI page.

    If that doesn't do the trick, you'll probably need to trace the cause why pkg_resources isn't being found. Either that, or remove all instances of setuptools/distribute in your Python installation and then install from scratch.

    From the standpoint of the ticket, your experience is inconsistent with what I've found in my testing, so there's nothing more the project can do without a reproducible example.

    Don't hesitate to follow up in this ticket, though, if you have more information to share or other questions.

  2. Log in to comment