Kaydet (Commit) 2f9a9e3c authored tarafından Jack Jansen's avatar Jack Jansen

2.1a2 distribution files.

üst 6f5a4efc
...@@ -30,3 +30,6 @@ CVS ...@@ -30,3 +30,6 @@ CVS
Makefile* Makefile*
Setup.in Setup.in
[(]*[)] [(]*[)]
*.mcp
*.mcp.exp
*.mcp.xml
...@@ -18,16 +18,14 @@ ...@@ -18,16 +18,14 @@
(':Extensions:Imaging', '') (':Extensions:Imaging', '')
(':Extensions:Imaging:Tk', None) (':Extensions:Imaging:Tk', None)
(':Extensions:Imaging:libImaging', None) (':Extensions:Imaging:libImaging', None)
(':Extensions:Numerical', '')
(':Extensions:Numerical:Mac', None)
(':Extensions:Numerical:Src', None)
(':Extensions:Pmw', None) (':Extensions:Pmw', None)
(':Extensions:PyDOM', None) (':Extensions:PyDOM', None)
(':Extensions:PyOpenGL-1.5.6a2', None)
(':Extensions:PyXML-0.6.2', None)
(':Extensions:README', None) (':Extensions:README', None)
(':Extensions:README.TOO', None) (':Extensions:README.TOO', None)
(':Extensions:audio', None) (':Extensions:audio', None)
(':Extensions:img:Lib', '') (':Extensions:img:Lib', '')
(':Extensions:img:Mac', '')
(':Extensions:img:README.img', '') (':Extensions:img:README.img', '')
(':Extensions:img:doc', None) (':Extensions:img:doc', None)
(':Extensions:img:test', '') (':Extensions:img:test', '')
...@@ -83,6 +81,7 @@ ...@@ -83,6 +81,7 @@
(':Mac:Contrib:BBPy:PythonSlave.py', '') (':Mac:Contrib:BBPy:PythonSlave.py', '')
(':Mac:Contrib:BBPy:README', '') (':Mac:Contrib:BBPy:README', '')
(':Mac:Contrib:BBPy:Run as Python', '') (':Mac:Contrib:BBPy:Run as Python', '')
(':Mac:Contrib:BBPy:Run as Python.sit', None)
(':Mac:Contrib:BBPy:source', None) (':Mac:Contrib:BBPy:source', None)
(':Mac:Contrib:ImageHelpers', '') (':Mac:Contrib:ImageHelpers', '')
(':Mac:Contrib:PythonDetector', '') (':Mac:Contrib:PythonDetector', '')
...@@ -97,6 +96,7 @@ ...@@ -97,6 +96,7 @@
(':Mac:Contrib:morefindertools', '') (':Mac:Contrib:morefindertools', '')
(':Mac:Contrib:osam:OSAm.exp', None) (':Mac:Contrib:osam:OSAm.exp', None)
(':Mac:Contrib:osam:OSAm.ppc.slb', '') (':Mac:Contrib:osam:OSAm.ppc.slb', '')
(':Mac:Contrib:osam:OSAm.ppc.slb.sit', None)
(':Mac:Contrib:strptime:strptime.py', '') (':Mac:Contrib:strptime:strptime.py', '')
(':Mac:Demo', '') (':Mac:Demo', '')
(':Mac:Distributions', None) (':Mac:Distributions', None)
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
(':Mac:Tools:bruce', None) (':Mac:Tools:bruce', None)
(':Mac:Tools:macfreeze', '') (':Mac:Tools:macfreeze', '')
(':Mac:Unsupported', None) (':Mac:Unsupported', None)
(':Mac:Wastemods:readme.txt', None)
(':Mac:_checkversion.py', '') (':Mac:_checkversion.py', '')
(':Mac:mwerks', None) (':Mac:mwerks', None)
(':Mac:scripts', '') (':Mac:scripts', '')
...@@ -178,8 +179,68 @@ ...@@ -178,8 +179,68 @@
(':pystone.py', None) (':pystone.py', None)
(':setup.py', None) (':setup.py', None)
(':site-packages', None) (':site-packages', None)
(':Extensions:PyXML-0.6.2', None) (':Extensions:img:Mac:genimgprojects.py', None)
(':Extensions:PyOpenGL-1.5.6a2', None) (':Extensions:img:Mac:imgcolormap.carbon.slb', '')
(':Mac:Wastemods:readme.txt', None) (':Extensions:img:Mac:imgcolormap.ppc.slb', '')
(':Mac:Contrib:osam:OSAm.ppc.slb.sit', None) (':Extensions:img:Mac:imgformat.carbon.slb', '')
(':Mac:Contrib:BBPy:Run as Python.sit', None) (':Extensions:img:Mac:imgformat.ppc.slb', '')
(':Extensions:img:Mac:imggif.carbon.slb', '')
(':Extensions:img:Mac:imggif.ppc.slb', '')
(':Extensions:img:Mac:imgjpeg.carbon.slb', '')
(':Extensions:img:Mac:imgjpeg.ppc.slb', '')
(':Extensions:img:Mac:imgop.carbon.slb', '')
(':Extensions:img:Mac:imgop.ppc.slb', '')
(':Extensions:img:Mac:imgpbm.carbon.slb', '')
(':Extensions:img:Mac:imgpbm.ppc.slb', '')
(':Extensions:img:Mac:imgpgm.carbon.slb', '')
(':Extensions:img:Mac:imgpgm.ppc.slb', '')
(':Extensions:img:Mac:imgpng.carbon.slb', '')
(':Extensions:img:Mac:imgpng.ppc.slb', '')
(':Extensions:img:Mac:imgppm.carbon.slb', '')
(':Extensions:img:Mac:imgppm.ppc.slb', '')
(':Extensions:img:Mac:imgsgi.carbon.slb', '')
(':Extensions:img:Mac:imgsgi.ppc.slb', '')
(':Extensions:img:Mac:imgtiff.carbon.slb', '')
(':Extensions:img:Mac:imgtiff.ppc.slb', '')
(':Extensions:Numerical:Legal.htm', '')
(':Extensions:Numerical:DEVELOPERS', '')
(':Extensions:Numerical:MANIFEST', '')
(':Extensions:Numerical:README', '')
(':Extensions:Numerical:setup_all.py', None)
(':Extensions:Numerical:setup.py', None)
(':Extensions:Numerical:build', None)
(':Extensions:Numerical:Demo', '')
(':Extensions:Numerical:Lib', '')
(':Extensions:Numerical:Mac', None)
(':Extensions:Numerical:Packages:FFT:setup.py', None)
(':Extensions:Numerical:Packages:FFT:build', None)
(':Extensions:Numerical:Packages:FFT:Lib', '')
(':Extensions:Numerical:Packages:FFT:Mac:Icon\r', None)
(':Extensions:Numerical:Packages:LALITE:build', None)
(':Extensions:Numerical:Packages:LALITE:Lib', '')
(':Extensions:Numerical:Packages:FFT:Src:fftpack.def', None)
(':Extensions:Numerical:Packages:LALITE:Mac:Icon\r', None)
(':Extensions:Numerical:Packages:MA:build', None)
(':Extensions:Numerical:Packages:LALITE:Src:lapack_lite.def', None)
(':Extensions:Numerical:Packages:LALITE:setup.py', None)
(':Extensions:Numerical:Packages:LALITE:README', '')
(':Extensions:Numerical:Packages:MA:Legal.htm', '')
(':Extensions:Numerical:Packages:MA:setup.py', None)
(':Extensions:Numerical:Packages:MA:Demo', '')
(':Extensions:Numerical:Packages:MA:Lib', '')
(':Extensions:Numerical:Packages:RANLIB:build', None)
(':Extensions:Numerical:Packages:MA:Test:test.py', '')
(':Extensions:Numerical:Packages:RANLIB:setup.py', None)
(':Extensions:Numerical:Packages:RANLIB:Lib', '')
(':Extensions:Numerical:Packages:RANLIB:Mac:Icon\r', None)
(':Extensions:Numerical:Packages:RANLIB:Src:ranlib.def', None)
(':Extensions:Numerical:Packages:RNG:Legal.htm', '')
(':Extensions:Numerical:Packages:RNG:README', '')
(':Extensions:Numerical:Packages:RNG:setup.py', None)
(':Extensions:Numerical:Packages:RNG:build', None)
(':Extensions:Numerical:Packages:RANLIB:README', '')
(':Extensions:Numerical:Packages:RNG:Lib', '')
(':Extensions:Numerical:Packages:RNG:Mac:Icon\r', None)
(':Extensions:Numerical:Packages:RNG:Test', '')
(':Extensions:Numerical:Src', None)
(':Extensions:Numerical:Test', '')
This diff is collapsed.
How to make a Python-distribution. How to make a Python-distribution.
---------------------------------- ----------------------------------
These notes are mainly for myself. These notes are mainly for myself, or for whoever tries to make a MacPython
distribution when I'm fed up with it. They were last updated for 2.1a2.
- Increase fragment version number in PythonCorePPC and PythonCoreCFM68K - Increase fragment version number in PythonCore and PythonCoreCarbon.
- Increase version number in STR resource (preffilename) and VERS resource the fragment number is Python's sys.hexversion, it should be set in the
- Update about box "PEF" preferences.
- Increase version number in _versioncheck.py - Increase version number in _versioncheck.py
- Build PythonStandSmall, run once in root folder - Build PythonStandSmall, run once in root folder
- Update Relnotes, readme's, Demo:build.html - Update Relnotes, readme's, Demo:build.html
...@@ -14,9 +15,7 @@ These notes are mainly for myself. ...@@ -14,9 +15,7 @@ These notes are mainly for myself.
- Run configurepython - Run configurepython
- set "no console" on all applets - set "no console" on all applets
- remove alis resource from all applets - remove alis resource from all applets
- mkdistr - mkdistr binary.include
- remove stdwin, cwilib demos - mkdistr dev.include
- make distribution archive with Installer Vise
- test on virgin system. Make sure to test tkinter too. - test on virgin system. Make sure to test tkinter too.
- make distribution archive
- binhextree, synctree
- update version number on the net
How to install Python 2.0 on your Macintosh How to install Python 2.1a2 on your Macintosh
------------------------------------------- ---------------------------------------------
Note that this is really an alpha: it is only lightly tested and contains a lot
of new code. Moreover, this release is Carbon only, so it will run on MacOS 8.6
or later and MacOS X. The next alpha will again run in "classic MacOS" (8.0 or
later).
I'm hoping for a fairly quick alpha cycle, with about 3 distributions in quick
succession, so please give feedback (to pythonmac-sig@python.org) as soon as
possible. You should definitely include the full version number of you MacOS
and the full version string of your MacPython.
Whether PIL, Tk and Numeric work in this release is a complete guess.
You should definitely read the Relnotes file too.
------
If this is your first encounter with Python: you definitely need the If this is your first encounter with Python: you definitely need the
common user documentation (common to all platforms). You can find this common user documentation (common to all platforms). You can find this
...@@ -17,17 +33,13 @@ Caveats ...@@ -17,17 +33,13 @@ Caveats
This is a final candidate version, so use with caution, and please report This is a final candidate version, so use with caution, and please report
problems as soon as possible, to pythonmac-sig@python.org. problems as soon as possible, to pythonmac-sig@python.org.
Aside from the general new Python 2.0 features (compared to 1.5.2, there Aside from the general new Python 2.1 features compared to 2.0 the main
was no 1.6 for the macintosh) like unicode support the main new features feature of this release is Carbon support.
of this MacPython release is support for multithreading. This has had
some preliminary testing, but please report any success or failure on
the mailing list.
This installer installs MacPython for PowerPC only, if you really want This installer installs MacPython for Carbon only. If you have a machine
68k support you will have to stay with 1.5.2. Or, if you are willing to running 8.5 or earlier you should wait for the next alfa and sitck with 2.0.
invest the time and have access to CodeWarrior you are welcome to try If you want
and build a 68k distribution, most of the projects and sources are 68k support you will have to stay with 1.5.2.
reasonably up to date (May 2000). Contact me for details.
This version of Python expects a recent version of Appearance, so it may This version of Python expects a recent version of Appearance, so it may
be that users with pre MacOS 8.5 systems have trouble running it. If be that users with pre MacOS 8.5 systems have trouble running it. If
...@@ -41,9 +53,7 @@ What to install ...@@ -41,9 +53,7 @@ What to install
This installer is PPC only: too many new MacOS features are not This installer is PPC only: too many new MacOS features are not
available on 68K, and doing workarounds, even just #ifdeffing in the available on 68K, and doing workarounds, even just #ifdeffing in the
code, is too much work for me right now. If someone wants to revive code, is too much work for me right now. If someone wants to revive
68K-MacPython: please do so. The project files still contain the 68K 68K-MacPython: please do so.
targets (they're simply skipped by the build process) so all that is
needed is CodeWarrior, a source distribution and commitment.
The optional parts in this distribution are The optional parts in this distribution are
- TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation - TK+PIL: Tkinter and support modules, plus Imaging, the Python image manipulation
...@@ -59,13 +69,11 @@ All these except the DevKit are installed with Easy Install. ...@@ -59,13 +69,11 @@ All these except the DevKit are installed with Easy Install.
After the installer finishes it automatically launches the After the installer finishes it automatically launches the
ConfigurePython applet, to finish configuration of your Python. ConfigurePython applet, to finish configuration of your Python.
If you have previously installed another copy of 2.0 you should manually
remove your preference file first (but no such action is needed for installing
beside older MacPythons, and they will live together happily).
Moving your Python installation after installing is generally not a good idea. Moving your Python installation after installing is generally not a good idea.
If you have to do this anyway you should remove your preference file, run If you have to do this anyway you should remove your preference file, run
ConfigurePython and remove all .pyc files. ConfigurePython and remove all .pyc files. (there's a script zappyc.py that does
the latter).
If you don't have enough memory: the sizes choosen are somewhat If you don't have enough memory: the sizes choosen are somewhat
arbitrary, and they are as high as they are so that test.autotest runs with fewer arbitrary, and they are as high as they are so that test.autotest runs with fewer
...@@ -79,8 +87,9 @@ After installing ...@@ -79,8 +87,9 @@ After installing
It is probably a good idea to run the automatic tests. Start It is probably a good idea to run the automatic tests. Start
Python and "import test.autotest". Python and "import test.autotest".
Three tests will fail on the mac, all with MemoryErrors: test_sha, Three tests will fail on MacOS9, all with MemoryErrors: test_gzip, test_sha,
test_longexp and test_zlib. If you increase the PythonInterpreter memory test_longexp and test_zlib (on MacOSX nothing should fail).
If you increase the PythonInterpreter memory
partition size they will pass. It will, however, print some messages partition size they will pass. It will, however, print some messages
about optional features not supported. You should not worry about these, about optional features not supported. You should not worry about these,
they are modules that are supported by Python on other platforms. Also, they are modules that are supported by Python on other platforms. Also,
...@@ -101,8 +110,8 @@ Uninstalling ...@@ -101,8 +110,8 @@ Uninstalling
------------ ------------
Two items are installed in the system folder: the interpreter shared Two items are installed in the system folder: the interpreter shared
library "PythonCore 2.0" lives in the Extensions folder and the libraries PythonCore and PythonCoreCarbon lives in the Extensions folder and the
"Python 2.0 Preferences" file in the Python subfolder in the "Python 2.1a2 Preferences" file in the Python subfolder in the
Preferences folder. All the rest of Python lives in the folder you Preferences folder. All the rest of Python lives in the folder you
installed in. installed in.
...@@ -137,15 +146,15 @@ software. ...@@ -137,15 +146,15 @@ software.
Upgrading from older Python releases Upgrading from older Python releases
------------------------------------ ------------------------------------
Since release 1.4 Python releases are independent of each other, with Python releases are independent of each other, with
separate Preferences files, shared library names, etc. The good news is separate Preferences files, shared library names, etc. The good news is
that this means you can keep your older version around if you are unsure that this means you can keep your older version around if you are unsure
whether to upgrade. The bad news is that your old preference settings whether to upgrade. The bad news is that your old preference settings
are lost and you have to set them again. are lost and you have to set them again.
After you are satisfied that 2.0 works as expected you can trash After you are satisfied that 2.1 works as expected you can trash
anything in the system folder that has "python" in the name and not anything in the system folder that has "python" in the name and not
"2.0". "2.1".
The installer The installer
------------- -------------
...@@ -188,11 +197,6 @@ Send bug reports, suggestions, contributions and fanmail to ...@@ -188,11 +197,6 @@ Send bug reports, suggestions, contributions and fanmail to
<pythonmac-sig@python.org> mailing list, which is explicitly meant for <pythonmac-sig@python.org> mailing list, which is explicitly meant for
this purpose. this purpose.
Alternatively, you can try sending to comp.lang.python or
python-list@cwi.nl, but since I read the newsgroup, not the mailinglist,
I may miss it there (but other people may know quite a bit more than me
anyway:-).
Jack Jansen Jack Jansen
Oratrix Development BV Oratrix Development BV
Valeriusplein 30 Valeriusplein 30
......
Changes in 2.0 since 1.5.2 Changes in 2.1a2 since 2.0
-------------------------- --------------------------
These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder) These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder)
...@@ -8,52 +8,58 @@ Unfortunately I have messed my administration up, so I can't give complete ...@@ -8,52 +8,58 @@ Unfortunately I have messed my administration up, so I can't give complete
Mac-specific release notes for the changes in this release. So, I will Mac-specific release notes for the changes in this release. So, I will
have to leave it at the highlights: have to leave it at the highlights:
- 68K support has been dropped, this release is PPC only. - The good news: this release is Carbon-based, so it runs natively on MacOS 8.6 or
- Threads support (through standard Python threads module). later and MacOSX.
- Tkinter works again! At least: it doesn't immedeately crash in obvious ways. - The bad news: this release is Carbon-only. The next alpha release will be both
- Appearance support through App module and added calls in many other modules. Carbon and classic PPC.
Most dialogs and applets have also been converted to Appearance. There's also a - Distutils is included and seems to work.
ControlAccessor module that handles [GS]etControlData with their plethora of - There's a new module (package, actually) mkcwproject which builds CodeWarrior
argument types. projects from simple templates. See Distutils or :Mac:scripts:genpluginprojects.py
- Navigation Services support, with macfs StandardFile calls transparently for examples of use.
replaced by their NavServices counterparts. - Windows and Dialogs can now be different beasts, so you may have to call
- Offscreen QuickDraw and GWorld support through Qdoffs module. dlg.GetDialogWindow() where you used to be able to call window methods straight
- Drag manager support (Drag module). on the dialog. This also has consequences for code using FrameWork.DialogWindow.
- Much better CGI support and examples, see :Mac:Tools:CGI. THIS IS AN INCOMPATIBLE CHANGE.
- Better OSA/AppleEvent support. - ctl.GetControlDataHandle() has been renamed to GetControlData_Handle(), and similarly
- Up/downcasting of handle-based types is now unified and implemented in the for the other variants of GetControlData and SetControlData. This was needed
inherting module, e.g. because Carbon defines a completely different routine with the name GetControlDataHandle.
handleobj = ctlobj.as_Resource() THIS IS AN INCOMPATIBLE CHANGE.
ctlobj = Ctl.as_Control(handle) - Method mac.xstat() has disappeared. THIS IS AN INCOMPATIBLE CHANGE.
- Added macos.FreeMem(), MaxBlock() and CompactMem(), mainly so apps in Python can - Menu.SetPopupData() and GetPopupData() are gone. Use SetPopupMenuHandle() and
give low-memory warnings. SetPopupMenuID() (and the getters) in stead. THIS IS AN INCOMPATIBLE CHANGE.
- MediaDescr module parses some QuickTime media descriptions (but definitely not all). - Various methods have disappeared when running under Carbon. The script
- A new method EasyDialogs.GetArgv() which makes it easy for the end-user to provide :Mac:scripts:missingcarbonmethods.py can check your sources, but you need unix to run
unix-style sys.argv arguments. (new since 2.0b1) it. Or use it as documentation and search by hand. THIS IS AN INCOMPATIBLE CHANGE.
- There's a new package, mkcwproject, that creates and builds CodeWarrior - The good news is that "direct access to toolbox structs" still works from Python,
projects. (new since 2.0b1) so Python programmers have a lot less to fix than C programmers.
- The "keep console open" options are now always, never, on error and on That's because the lowlevel code simply uses the accessors internally. The accessors
unseen output. The latter is the new default. There is also a call are available both in Carbon and Classic MacPython.
MacOS.KeepConsole() which allows programs to override the behaviour, and - Scrap under Carbon is, you guessed it, the Carbon Scrap Manager. Some workarounds are
a call MacOS.OutputSeen() which acknowledges all output until now. provided, though. THIS IS AN INCOMPATIBLE CHANGE.
(new since 2.0b1) - The Internet Config routines that are missing from Carbon have been removed. This
- Missing Numeric modules are included. They may not be on sys.path, however. (new since 2.0b1) is no problem if you use the "ic" module, but may be if you use "icglue" directly.
- gdbm works again. (new since 2.0b1) THIS IS AN INCOMPATIBLE CHANGE.
- Command-. and threads don't bite each other as badly anymore. (new since 2.0c1) - Various old toolbox names (CountMItems, EnableItem, etc) have disappeared. Use the
- InstallPython will optionally copy PythonCore in stead of creating an alias, when new forms (CountMenuItems, EnableMenuItem, etc). THIS IS AN INCOMPATIBLE CHANGE.
needed. (new since 2.0c1) - Waste now uses Waste 2.0.
- All bugs reported to the pythonmac-sig in the 2.0c1 period have been fixed. - The default memory size for the interpreter has been upped again.
- The MacOS error messages have been updated to reflect the current state of
things. This was long overdue.
- The crash in BuildApplication has been fixed.
- struct.pack related problems (in Audio_Mac, for example) have been fixed.
- (src/dev/cvs only): The project files now use the .mcp extension in stead of .prj.
Projects for almost all plugins and the img modules are automatically generated
with :Mac:scripts:genpluginprojects.py (also called by fullbuild). The .mcp files
are not in the repository, if you don't want to use genpluginprojects you can import
the .mcp.xml files in CodeWarrior.
What is not in this distribution What is not in this distribution
-------------------------------- --------------------------------
- The garbage collection mods to 2.0 have not been enabled, mainly due to lack of test-time. - The garbage collection mods have not been enabled, mainly due to lack of test-time.
- Stackless Python/microthreads hasn't been ported to 2.0 yet. If/when it becomes available - Stackless Python/microthreads hasn't been ported to 2.0 yet. If/when it becomes available
Just will undoubtedly announce it on pythonmac-sig and the MacPython homepage. Just will undoubtedly announce it on pythonmac-sig and the MacPython homepage.
- Carbon support is not in here, but should be happening as soon as GUSI is ready.
- Distutils is incomplete for the Mac, unfortunately. A newer version should be available
soon and will be announced on pythonmac-sig and the MacPython homepage.
Known problems Known problems
-------------- --------------
...@@ -63,3 +69,6 @@ http://www.cwi.nl/~jack/macpython.html. ...@@ -63,3 +69,6 @@ http://www.cwi.nl/~jack/macpython.html.
- The IDE and Tkinter do not work together. Run tkinter programs under PythonInterpreter. - The IDE and Tkinter do not work together. Run tkinter programs under PythonInterpreter.
- Aliases do not work in sys.path entries. - Aliases do not work in sys.path entries.
- The menu bar isn't always correctly restored before MacPython turns to <<terminated>>.
- Under Carbon only you may occasionally see a spurious KeyboardInterrupt. I have absolutely
no clue as to what is causing this.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment