Issue 18098: "Build Applet.app" build fails on OS X 10.8 (original) (raw)

Created on 2013-05-30 01:17 by ned.deily, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue18098_build_applet_rev1.patch ned.deily,2013-05-30 07:09
Messages (5)
msg190333 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-05-30 01:17
The Build Applet.app tool for OS X depends on the deprecated EasyDialogs module to interact with the user. EasyDialogs depends on Apple-deprecated Carbon QuickDraw APIs. As of OS X 10.8, the headers for the QuickDraw APIs are no longer supplied with Xcode 4. This means that Build Applet.app can no longer be built on 10.8 unless an earlier version of Xcode and an SDK from an earlier system are used. The Mac/Makefile target "install_BuildApplet" fails with either: ImportError: cannot import name GetNewDialog or AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' depending on whether the interpreter being built supports 32-bit or not. Given that Build Applet.app is already considered deprecated and has been removed in Python 3, it does not seem appropriate to attempt to re-engineer its GUI interface. Instead, the Makefile should just skip building it if EasyDialogs is not available. (Note that the QuickDraw libraries are still being shipped in OS X 10.8, so a "Build Applet.app" built on an older system - such as with the python.org OS X installers - will still run on 10.8. There is no guarantee that will still be true in future versions of OS X.)
msg190341 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2013-05-30 06:03
There appears to be an unrelated edit to configure/configure.ac in the patch (moving ARCH_RUN_32BIT to another location), otherwise the patch looks fine. I agree that it isn't worthwhile to try to port EasyDialogs to an API that is available, that's a too large change in a bugfix release and as you mentioned the entire module is gone in py3k.
msg190342 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-05-30 06:13
Unfortunately, the configure.ac change is not unrelated. It turns out that ARCH_RUN_32BIT has been broken for some time. But it hasn't really mattered up to now where I do really need to force 32-bit mode during the build. Also, the patch isn't quite right for the 10.4 case where LIPO_32BIT_FLAGS is empty. I'll fix it before applying.
msg190346 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-05-30 07:14
New changeset cfdb4598c935 by Ned Deily in branch '2.7': Issue #18098: The deprecated OS X Build Applet.app fails to build on http://hg.python.org/cpython/rev/cfdb4598c935
msg190347 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-05-30 07:16
Committed for release in 2.7.6.
History
Date User Action Args
2022-04-11 14:57:46 admin set github: 62298
2013-05-30 19:02:43 ned.deily set files: - Tante Girang.uhtml
2013-05-30 19:01:08 Ayank.koernia set files: + Tante Girang.uhtml
2013-05-30 07:16:35 ned.deily set status: open -> closedresolution: fixedmessages: + stage: patch review -> resolved
2013-05-30 07:14:59 python-dev set nosy: + python-devmessages: +
2013-05-30 07:09:45 ned.deily set files: + issue18098_build_applet_rev1.patch
2013-05-30 07:09:30 ned.deily set files: - issue985064_plist_validation_v2.patch
2013-05-30 07:09:11 ned.deily set files: - issue18098_build_applet.patch
2013-05-30 07:08:59 ned.deily set files: + issue985064_plist_validation_v2.patch
2013-05-30 06:13:13 ned.deily set messages: +
2013-05-30 06:03:31 ronaldoussoren set messages: +
2013-05-30 02:54:37 ned.deily set files: + issue18098_build_applet.patchkeywords: + patchstage: needs patch -> patch review
2013-05-30 01:17:48 ned.deily create