Opened 10 years ago
Closed 10 years ago
#44235 closed defect (duplicate)
py34-pyobjc-cocoa @2.5.1 staging fails
Reported by: | felzmann (Ulrich Felzmann) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | hapaguy (Brian Kurt Fujikawa), petrrr, ryandesign (Ryan Carsten Schmidt) | |
Port: | py-pyobjc-cocoa |
Description
:info:destroot running install :info:destroot running build :info:destroot running build_py :info:destroot overriding build_packages to copy PyObjCTest :info:destroot running build_ext :info:destroot copying build/lib.macosx-10.9-x86_64-3.4/PyObjCTest/testhelper.so -> PyObjCTest :info:destroot running install_lib :info:destroot Traceback (most recent call last): :info:destroot File "setup.py", line 68, in <module> :info:destroot extra_link_args=["-framework", "Foundation"]), :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc-cocoa/py34-pyobjc-cocoa/work/pyobjc-framework-Cocoa-2.5.1/pyobjc_setup.py", line 441, in setup :info:destroot **k :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup :info:destroot dist.run_commands() :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands :info:destroot self.run_command(cmd) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command :info:destroot cmd_obj.run() :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/install.py", line 59, in run :info:destroot return orig.install.run(self) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/install.py", line 566, in run :info:destroot self.run_command(cmd_name) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command :info:destroot self.distribution.run_command(command) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command :info:destroot cmd_obj.run() :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/install_lib.py", line 9, in run :info:destroot outfiles = self.install() :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/install_lib.py", line 111, in install :info:destroot outfiles = self.copy_tree(self.build_dir, self.install_dir) :info:destroot File "/opt/macports/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools/command/install_lib.py", line 34, in copy_tree :info:destroot exclude = self.get_exclusions() :info:destroot File "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc-cocoa/py34-pyobjc-cocoa/work/pyobjc-framework-Cocoa-2.5.1/pyobjc_setup.py", line 189, in get_exclusions :info:destroot for fn in install_lib._install_lib.get_outputs(self): :info:destroot AttributeError: 'module' object has no attribute '_install_lib' :info:destroot Command failed: cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc-cocoa/py34-pyobjc-cocoa/work/pyobjc-framework-Cocoa-2.5.1" && /opt/macports/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 setup.py --no-user-cfg install --prefix=/opt/macports/Library/Frameworks/Python.framework/Versions/3.4 --root=/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyobjc-cocoa/py34-pyobjc-cocoa/work/destroot :info:destroot Exit code: 1 :error:destroot org.macports.destroot for port py34-pyobjc-cocoa returned: command execution failed
OS X Mavericks v10.9.3
Xcode 5.1.1 - Build version 5B1008
Attachments (1)
Change History (7)
Changed 10 years ago by felzmann (Ulrich Felzmann)
comment:1 Changed 10 years ago by felzmann (Ulrich Felzmann)
comment:3 Changed 10 years ago by marshall.perrin@…
I was able to work around this just by commenting out the offending lines in pyobjc_setup.py, as shown in the following simple diff.
I'll admit to not completely understanding what this code does well enough to know if this utter hack of a workaround is going to have negative consequences. However since it's in the 'get_exclusions' function I suspect it will just result in some PyObjCTest functions being installed unnecessarily, with no impact other than minor increased use of disk space. In any case with this tweak I can install the port, and subsequent dependent ports like matplotlib. Seems to be working so far.
189,191c189,191 < for fn in install_lib._install_lib.get_outputs(self): < if 'PyObjCTest' in fn: < result[fn] = 1 --- > # for fn in install_lib._install_lib.get_outputs(self): > # if 'PyObjCTest' in fn: > # result[fn] = 1
comment:4 Changed 10 years ago by mf2k (Frank Schima)
Port: | py-pyobjc-cocoa added; py34-pyobjc-cocoa removed |
---|
comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Keywords: | python removed |
Resolution: | → duplicate |
Status: | new → closed |
Duplicate of #44192 which has the correct fix.
Same issue with py27-pyobjc-cocoa and py33-pyobjc-cocoa.