This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Unsupported provider

classification
Title: "Build Applet.app" build fails on OS X 10.8
Type: Stage: resolved
Components: Build, macOS Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ned.deily Nosy List: ned.deily, python-dev, ronaldoussoren
Priority: normal Keywords: patch

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:46adminsetgithub: 62298
2013-05-30 19:02:43ned.deilysetfiles: - Tante Girang.uhtml
2013-05-30 19:01:08Ayank.koerniasetfiles: + Tante Girang.uhtml
2013-05-30 07:16:35ned.deilysetstatus: open -> closed
resolution: fixed
messages: + msg190347

stage: patch review -> resolved
2013-05-30 07:14:59python-devsetnosy: + python-dev
messages: + msg190346
2013-05-30 07:09:45ned.deilysetfiles: + issue18098_build_applet_rev1.patch
2013-05-30 07:09:30ned.deilysetfiles: - issue985064_plist_validation_v2.patch
2013-05-30 07:09:11ned.deilysetfiles: - issue18098_build_applet.patch
2013-05-30 07:08:59ned.deilysetfiles: + issue985064_plist_validation_v2.patch
2013-05-30 06:13:13ned.deilysetmessages: + msg190342
2013-05-30 06:03:31ronaldoussorensetmessages: + msg190341
2013-05-30 02:54:37ned.deilysetfiles: + issue18098_build_applet.patch
keywords: + patch
stage: needs patch -> patch review
2013-05-30 01:17:48ned.deilycreate