#39441: py27-readline @6.2.4.1_0: build failure with distribute installed in /Library/Python ----------------------------+-------------------------------- Reporter: abc@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py27-readline | ----------------------------+-------------------------------- Comment (by jfilippidis@…): The issue in my case (with the same log, see [ticket:39525] ) had been as explained in [ticket:34763]. The Mac OS X python 2.7 installation interferes with MacPorts python 2.7. This occurs while calling setup.py during port install py27-readline. Setup.py tries to import from setuptools and instead of using the MacPorts setuptools version 0.7 (no distribute), it uses the system python one. Part of the error is also explained here: https://bitbucket.org/tarek/distribute/issue/104 Also, other packages (like pep8) failed to installed due to the same reason, preventing installation of ipython and spyder. Briefly, all this is caused by adding /Library/Python/2.7/site-packages to the path while building, for more explanations see [ticket:34763]. A solution for all these problems is to uninstall the distribute package from the preinstalled Mac OS X python 2.7. In order to achieve this, follow these steps: {{{ sudo port select --set python python27-apple sudo pip uninstall distribute sudo port select --set python python27 }}} -- Ticket URL: <https://trac.macports.org/ticket/39441#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X