[Pythonmac-SIG] Binary packages for numarray 1.5.1 and Numeric 24.2

Russell E. Owen rowen at cesmail.net
Fri Feb 24 00:26:22 CET 2006


I made binary distributions of the current versions of numarray and 
Numeric for MacOS 10.3+ and Python 2.4. They are here:
<ftp://ftp.astro.washington.edu/pub/users/rowen/PythonPackages/>.

They pass their self-tests, except Numeric fails one test (identically 
whether installed from source or the package, so I suspect the test is 
broken).

I hope somebody will put these on the python website. (If so, let me 
know and I'll take them down from the ftp site above).

Overall I was blown away by how easy py2app made this process. However, 
I did run into a few issues:

1) I could not build packages for the built-in python 2.3. What I tried 
(among other things):
- Install py2app from py2app-0.2-py2.3-macosx10.3.mpkg
- Run bdist_mpkg. It fails with:
...
  File "/Library/Python/2.3/py2app/py2app/build_app.py", line 24, in ?
    import macholib.MachOStandalone
ImportError: No module named MachOStandalone
- I also tried modifying setup.py to import bdist_mpkg, but then
  python setup.py mpkg_bdist
fails in the same way (while importing mpkg_bdist).

This is no big deal to me, since I use Python 2.4, but if somebody can 
explain how to work around this, I'd be happy to supply packages for 2.3 
as well.

2) Can I make the two py2apps (for python 2.4 and 2.3) coexist by 
renaming one set of binaries in /usr/local/bin, or might there be other 
subtle conflicts? (It would have been easy enough to try this myself, 
except for the first problem).

3) I tried to use bdist_mpkg to bundle Numeric 24.2 and got this error:

AssertionError: distutils has already been patched by <class 
py2app.install.Distribution at 0x40a090>

However, modifying setup.py to import bdist_mpkg and using python 
setup.py bdist_mpkg worked fine.


-- Russell



More information about the Pythonmac-SIG mailing list