Opened 11 years ago

Closed 11 years ago

#39478 closed defect (fixed)

py-macfsevents @0.3: build fails trying to use distribute

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: haspatch Cc: stromnov (Andrey Stromnov)
Port: py-macfsevents

Description

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.

Attachments (3)

main.log.gz (3.2 KB) - added by mndavidoff (Monte Davidoff) 11 years ago.
Portfile.diff (347 bytes) - added by mndavidoff (Monte Davidoff) 11 years ago.
setup.py.diff (323 bytes) - added by mndavidoff (Monte Davidoff) 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: Portfile.diff added

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: setup.py.diff added

comment:1 Changed 11 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Thanks! Committed at r107154.

Note: See TracTickets for help on using tickets.