diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-09-12 22:19:23 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-09-12 22:19:23 (GMT) |
commit | 76a6ab661bd2de5d6ed8528846c33003cae40aee (patch) | |
tree | 02812a0bbc8c073d3b725b72b463fee5f0c8a148 /Mac/OSX | |
parent | e87ed57ea68b1e2b7a3b4b58be9cfdb36ed9ba03 (diff) | |
download | cpython-76a6ab661bd2de5d6ed8528846c33003cae40aee.zip cpython-76a6ab661bd2de5d6ed8528846c33003cae40aee.tar.gz cpython-76a6ab661bd2de5d6ed8528846c33003cae40aee.tar.bz2 |
Patch by Tony Lownds: build an IDLE applet too, if _tkinter is available.
I modified the patch to make it a non-fatal error if IDLE isn't built.
Diffstat (limited to 'Mac/OSX')
-rw-r--r-- | Mac/OSX/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile index 7c89a97..b28d9f2 100644 --- a/Mac/OSX/Makefile +++ b/Mac/OSX/Makefile @@ -49,7 +49,7 @@ RESOURCEFILE=python.rsrc RFCONVERTER=$(srcdir)/Mac/Lib/applesingle.py CACHERSRC=$(srcdir)/Mac/scripts/cachersrc.py -installapps: install_PythonLauncher install_Python install_BuildApplet install_IDE +installapps: install_PythonLauncher install_Python install_BuildApplet install_IDE install_IDLE install_PythonLauncher: cd $(srcdir)/Mac/OSX/PythonLauncher/PythonLauncher.pbproj ; \ @@ -130,6 +130,26 @@ install_IDE: $(INSTALLED_PYTHONW) $(INSTALLED_PYTHONW) $(srcdir)/Mac/scripts/BuildApplet.py \ --output $(PYTHONAPPSDIR)/PythonIDE.app --noargv \ $(srcdir)/Mac/Tools/IDE/PythonIDE.py + +install_IDLE: $(INSTALLED_PYTHONW) + @if ! $(INSTALLED_PYTHONW) -c "import _tkinter"; then \ + echo IDLE needs the \"Tkinter\" extension module; \ + echo See Mac/OSX/README for details; \ + else \ + echo $(INSTALLED_PYTHONW) $(srcdir)/Mac/scripts/BuildApplet.py \ + --output $(PYTHONAPPSDIR)/IDLE.app \ + --extra $(srcdir)/Tools/idle \ + $(srcdir)/Tools/idle/idle ; \ + $(INSTALLED_PYTHONW) $(srcdir)/Mac/scripts/BuildApplet.py \ + --output $(PYTHONAPPSDIR)/IDLE.app \ + --extra $(srcdir)/Tools/idle \ + $(srcdir)/Tools/idle/idle ; \ + echo mv $(PYTHONAPPSDIR)/IDLE.app/Contents/Resources/idle \ + $(PYTHONAPPSDIR)/IDLE.app/Contents/Resources/idlelib; \ + mv $(PYTHONAPPSDIR)/IDLE.app/Contents/Resources/idle \ + $(PYTHONAPPSDIR)/IDLE.app/Contents/Resources/idlelib; \ + fi + install_BuildApplet: $(INSTALLED_PYTHONW) $(INSTALLED_PYTHONW) $(srcdir)/Mac/scripts/BuildApplet.py \ |