[MacPorts] #39478: py-macfsevents @0.3: build fails trying to use distribute
MacPorts
noreply at macports.org
Wed Jun 19 21:33:07 PDT 2013
#39478: py-macfsevents @0.3: build fails trying to use distribute
-----------------------------+--------------------------------
Reporter: md14-macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: haspatch | Port: py-macfsevents
-----------------------------+--------------------------------
I got an error building py27-macfsevents because it tries to use
distribute instead of setuptools.
{{{
$ port installed py27-setuptools
The following ports are currently installed:
py27-setuptools @0.7.4_0 (active)
$ sudo port -vs install py27-macfsevents
---> Computing dependencies for py27-macfsevents.
---> Fetching distfiles for py27-macfsevents
---> Verifying checksum(s) for py27-macfsevents
---> Checksumming MacFSEvents-0.3.tar.gz
---> Extracting py27-macfsevents
---> Extracting MacFSEvents-0.3.tar.gz
---> Configuring py27-macfsevents
---> Building py27-macfsevents
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
Extracting in /tmp/tmpDciL68
Now working in /tmp/tmpDciL68/distribute-0.6.34
Building a Distribute egg in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_python_py-
macfsevents/py27-macfsevents/work/MacFSEvents-0.3
Traceback (most recent call last):
File "setup.py", line 45, in <module>
exec(init_file.read(), d)
File "<string>", line 8, in <module>
File "/private/tmp/tmpDciL68/distribute-0.6.34/setuptools/__init__.py",
line 2, in <module>
from setuptools.extension import Extension, Library
File "/private/tmp/tmpDciL68/distribute-0.6.34/setuptools/extension.py",
line 5, in <module>
from setuptools.dist import _get_unpatched
File "/private/tmp/tmpDciL68/distribute-0.6.34/setuptools/dist.py", line
6, in <module>
from setuptools.command.install import install
File
"/private/tmp/tmpDciL68/distribute-0.6.34/setuptools/command/__init__.py",
line 8, in <module>
from setuptools.command import install_scripts
File
"/private/tmp/tmpDciL68/distribute-0.6.34/setuptools/command/install_scripts.py",
line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/private/tmp/tmpDciL68/distribute-0.6.34/pkg_resources.py", line
2823, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/private/tmp/tmpDciL68/distribute-0.6.34/pkg_resources.py", line
710, in subscribe
callback(dist)
File "/private/tmp/tmpDciL68/distribute-0.6.34/pkg_resources.py", line
2823, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/private/tmp/tmpDciL68/distribute-0.6.34/pkg_resources.py", line
2255, in activate
self.insert_on(path)
File "/private/tmp/tmpDciL68/distribute-0.6.34/pkg_resources.py", line
2356, in insert_on
"with distribute. Found one at %s" % str(self.location))
ValueError: A 0.7-series setuptools cannot be installed with distribute.
Found one at
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages
...
}}}
The attached patch works for me to fix the problem.
--
Ticket URL: <https://trac.macports.org/ticket/39478>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list