Opened 11 years ago

Closed 10 years ago

#43586 closed defect (fixed)

py27-pyobjc @2.5.1: build fails with py27-setuptools @3.5.1

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: majoc-at-astro (majoc-at-astro)
Port: py-pyobjc

Description

Building py27-pyobjc @2.5.1 fails after I upgraded to py27-setuptools @3.5.1:

$ port installed py27-setuptools
The following ports are currently installed:
  py27-setuptools @3.5.1_0 (active)
$ sudo port -vs install py27-pyobjc
--->  Computing dependencies for py27-pyobjc.
--->  Fetching distfiles for py27-pyobjc
...
copying build/lib.macosx-10.6-x86_64-2.7/PyObjCTest/testclassandinst.so -> PyObjCTest
copying build/lib.macosx-10.6-x86_64-2.7/PyObjCTest/testoutputinitializer.so -> PyObjCTest
copying build/lib.macosx-10.6-x86_64-2.7/PyObjCTest/voidpointer.so -> PyObjCTest
running install_lib
Traceback (most recent call last):
  File "setup.py", line 574, in <module>
    zip_safe = False,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/install.py", line 59, in run
    return orig.install.run(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 575, in run
    self.run_command(cmd_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 9, in run
    outfiles = self.install()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install_lib.py", line 115, in install
    outfiles = self.copy_tree(self.build_dir, self.install_dir)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 34, in copy_tree
    exclude = self.get_exclusions()
  File "setup.py", line 271, in get_exclusions
    for fn in install_lib._install_lib.get_outputs(self):
AttributeError: 'module' object has no attribute '_install_lib'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/pyobjc-core-2.5.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg install --prefix=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 --root=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/work/destroot 
Exit code: 1
Error: org.macports.destroot for port py27-pyobjc returned: command execution failed
Warning: targets not executed for py27-pyobjc: org.macports.activate org.macports.destroot org.macports.install
Please see the log file for port py27-pyobjc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc/py27-pyobjc/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pyobjc failed

Attachments (2)

main.log.gz (9.2 KB) - added by mndavidoff (Monte Davidoff) 11 years ago.
setup.py.diff.02 (470 bytes) - added by drs@… 10 years ago.
my fix for non-portable py-pyobjc setup.py

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.gz added

Changed 10 years ago by drs@…

Attachment: setup.py.diff.02 added

my fix for non-portable py-pyobjc setup.py

comment:1 Changed 10 years ago by mndavidoff (Monte Davidoff)

The upstream author has a fix for this defect: https://bitbucket.org/ronaldoussoren/pyobjc/issue/86/. The fix will be included in PyObjC 3.0.1.

comment:2 Changed 10 years ago by mndavidoff (Monte Davidoff)

The patch in setup.py.diff.02​ worked for me. Thanks!

comment:3 Changed 10 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc@… added

Cc Me!

comment:4 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Thanks for the patch, committed in r121456.

Note: See TracTickets for help on using tickets.