| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a17775f commit 2160015
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,18 +1,19 @@ | |||
| 1 | - {\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf410 | ||
| 2 | - {\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;} | ||
| 1 | + {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 | ||
| 2 | + {\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
| 3 | 3 | {\colortbl;\red255\green255\blue255;} | |
| 4 | 4 | \paperw11900\paperh16840\margl1440\margr1440\vieww9920\viewh10660\viewkind0 | |
| 5 | 5 | \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural | |
| 6 | 6 | ||
| 7 | 7 | \f0\fs24 \cf0 This package will install | |
| 8 | - \f1\b MacPython $FULL_VERSION | ||
| 9 | - \f0\b0 for | ||
| 10 | - \f1\b Mac OS X $MACOSX_DEPLOYMENT_TARGET | ||
| 11 | - \f0\b0 .\ | ||
| 8 | + \b MacPython $FULL_VERSION | ||
| 9 | + \b0 for | ||
| 10 | + \b Mac OS X $MACOSX_DEPLOYMENT_TARGET | ||
| 11 | + \b0 .\ | ||
| 12 | 12 | \ | |
| 13 | 13 | MacPython consists of the Python programming language interpreter, plus a set of programs to allow easy access to it for Mac users (an integrated development environment, an applet builder), plus a set of pre-built extension modules that open up specific Macintosh technologies to Python programs (Carbon, AppleScript, Quicktime, more).\ | |
| 14 | 14 | \ | |
| 15 | 15 | See the ReadMe file for more information.\ | |
| 16 | 16 | \ | |
| 17 | - \ | ||
| 18 | - This package will by default update your shell profile to ensure that this version of Python is on the search path of your shell. Please deselect the "Shell profile updater" package on the package customization screen if you want to avoid this modification. } | ||
| 17 | + | ||
| 18 | + \b NOTE: | ||
| 19 | + \b0 This package will by default update your shell profile to ensure that this version of Python is on the search path of your shell. Please deselect the "Shell profile updater" package on the package customization screen if you want to avoid this modification. } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | <key>CFBundleExecutable</key> | |
| 37 | 37 | <string>IDLE</string> | |
| 38 | 38 | <key>CFBundleGetInfoString</key> | |
| 39 | - <string>2.6.0, © 001-2006 Python Software Foundation</string> | ||
| 39 | + <string>%version%, © 2001-2008 Python Software Foundation</string> | ||
| 40 | 40 | <key>CFBundleIconFile</key> | |
| 41 | 41 | <string>IDLE.icns</string> | |
| 42 | 42 | <key>CFBundleIdentifier</key> | |
@@ -48,10 +48,10 @@ | |||
| 48 | 48 | <key>CFBundlePackageType</key> | |
| 49 | 49 | <string>APPL</string> | |
| 50 | 50 | <key>CFBundleShortVersionString</key> | |
| 51 | - <string>2.6.0</string> | ||
| 51 | + <string>%version%</string> | ||
| 52 | 52 | <key>CFBundleSignature</key> | |
| 53 | 53 | <string>????</string> | |
| 54 | 54 | <key>CFBundleVersion</key> | |
| 55 | - <string>2.6.0</string> | ||
| 55 | + <string>%version%</string> | ||
| 56 | 56 | </dict> | |
| 57 | 57 | </plist> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - #!/Library/Frameworks/Python.framework/Versions/3.0/Resources/Python.app/Contents/MacOS/Python | ||
| 1 | + #!%prefix%/Resources/Python.app/Contents/MacOS/Python3 | ||
| 2 | 2 | ||
| 3 | 3 | import sys, os | |
| 4 | 4 | execdir = os.path.dirname(sys.argv[0]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -216,8 +216,10 @@ install_Python4way: install_Python | |||
| 216 | 216 | install_IDLE: | |
| 217 | 217 | test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" | |
| 218 | 218 | -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" | |
| 219 | - cp -PR IDLE/IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)" | ||
| 219 | + cp -PR "$(srcdir)/IDLE/IDLE.app" "$(DESTDIR)$(PYTHONAPPSDIR)" | ||
| 220 | 220 | ln -sf $(INSTALLED_PYTHONAPP) "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/Python" | |
| 221 | + sed "s!%prefix%!$(prefix)!g" < "$(srcdir)/IDLE/IDLE.app/Contents/MacOS/IDLE" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/MacOS/IDLE" | ||
| 222 | + sed "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`!g" < "$(srcdir)/IDLE/IDLE.app/Contents/Info.plist" > "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app/Contents/Info.plist" | ||
| 221 | 223 | touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" | |
| 222 | 224 | ||
| 223 | 225 | $(INSTALLED_PYTHONAPP): install_Python | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ | |||
| 40 | 40 | <key>CFBundleExecutable</key> | |
| 41 | 41 | <string>PythonLauncher</string> | |
| 42 | 42 | <key>CFBundleGetInfoString</key> | |
| 43 | - <string>%VERSION%, © 001-2006 Python Software Foundation</string> | ||
| 43 | + <string>%VERSION%, © 2001-2008 Python Software Foundation</string> | ||
| 44 | 44 | <key>CFBundleIconFile</key> | |
| 45 | 45 | <string>PythonLauncher.icns</string> | |
| 46 | 46 | <key>CFBundleIdentifier</key> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,13 +19,63 @@ PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ | |||
| 19 | 19 | MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ | |
| 20 | 20 | @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET | |
| 21 | 21 | ||
| 22 | - BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py | ||
| 22 | + BUNDLEBULDER=$(srcdir)/../Tools/bundlebuilder.py | ||
| 23 | 23 | ||
| 24 | 24 | PYTHONAPPSDIR=/Applications/$(PYTHONFRAMEWORK) $(VERSION) | |
| 25 | 25 | OBJECTS=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o | |
| 26 | 26 | ||
| 27 | - install: | ||
| 27 | + install: Python\ Launcher.app | ||
| 28 | 28 | test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" | |
| 29 | 29 | -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" | |
| 30 | 30 | cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)" | |
| 31 | 31 | touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" | |
| 32 | + | ||
| 33 | + | ||
| 34 | + clean: | ||
| 35 | + rm -f *.o "Python Launcher" | ||
| 36 | + rm -rf "Python Launcher.app" | ||
| 37 | + | ||
| 38 | + Python\ Launcher.app: Info.plist \ | ||
| 39 | + Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \ | ||
| 40 | + $(srcdir)/../Icons/PythonSource.icns \ | ||
| 41 | + $(srcdir)/../Icons/PythonCompiled.icns \ | ||
| 42 | + $(srcdir)/factorySettings.plist | ||
| 43 | + rm -fr "Python Launcher.app" | ||
| 44 | + $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \ | ||
| 45 | + --builddir=. \ | ||
| 46 | + --name="Python Launcher" \ | ||
| 47 | + --executable="Python Launcher" \ | ||
| 48 | + --iconfile=$(srcdir)/../Icons/PythonLauncher.icns \ | ||
| 49 | + --bundle-id=org.python.PythonLauncher \ | ||
| 50 | + --resource=$(srcdir)/../Icons/PythonSource.icns \ | ||
| 51 | + --resource=$(srcdir)/../Icons/PythonCompiled.icns \ | ||
| 52 | + --resource=$(srcdir)/English.lproj \ | ||
| 53 | + --resource=$(srcdir)/factorySettings.plist \ | ||
| 54 | + --plist Info.plist \ | ||
| 55 | + build | ||
| 56 | + find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r | ||
| 57 | + | ||
| 58 | + | ||
| 59 | + FileSettings.o: $(srcdir)/FileSettings.m | ||
| 60 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/FileSettings.m | ||
| 61 | + | ||
| 62 | + MyAppDelegate.o: $(srcdir)/MyAppDelegate.m | ||
| 63 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyAppDelegate.m | ||
| 64 | + | ||
| 65 | + MyDocument.o: $(srcdir)/MyDocument.m | ||
| 66 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyDocument.m | ||
| 67 | + | ||
| 68 | + PreferencesWindowController.o: $(srcdir)/PreferencesWindowController.m | ||
| 69 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/PreferencesWindowController.m | ||
| 70 | + | ||
| 71 | + doscript.o: $(srcdir)/doscript.m | ||
| 72 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/doscript.m | ||
| 73 | + | ||
| 74 | + main.o: $(srcdir)/main.m | ||
| 75 | + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/main.m | ||
| 76 | + | ||
| 77 | + Python\ Launcher: $(OBJECTS) | ||
| 78 | + $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon | ||
| 79 | + | ||
| 80 | + Info.plist: $(srcdir)/Info.plist.in | ||
| 81 | + sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(srcdir)/Info.plist.in > Info.plist | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments