[Numpy-discussion] building a better OSX install for 1.1.1

Christopher Burns cburns at berkeley.edu
Fri Jul 18 17:17:40 EDT 2008


Sorry Russell, I was a bit brief before.

Installer.app checks for a system requirement when the user installs numpy.
I build numpy using bdist_mpkg against the python.org version of python
(MacPython).  If a user tries to install numpy and they _do not_ have this
version of python installed, Installer.app issues a warning:
"numpy requires System Python 2.5 to install."

The phrase "System Python" is misleading, it's reasonable to assume that
refers to the system version of python.  So I'd like to change it.

This string is stored in an Info.plist buried in the .mpkg that bdist_mpkg
builds.  I'd like to be able to override that string from the command line,
but there does not seem to be any options for changing the requirements from
the command line.

The hack solution is to modify the string in the Info.plist after the
package is built.  But I'm hoping there's a proper solution that I'm
missing.

Thanks!
Chris

On Fri, Jul 18, 2008 at 11:59 AM, Russell E. Owen <rowen at cesmail.net> wrote:

> In article
> <764e38540807172233m6bce652bp40478564de10e265 at mail.gmail.com>,
>  "Christopher Burns" <cburns at berkeley.edu> wrote:
>
> > I've been using bdist_mpkg to build the OSX Installer.  I'd like to
> update
> > the requirement documentation for the 1.1.1 release candidate to say
> > "MacPython from python.org" instead of "System Python".  bdist_mpkg
> > specifies this, does anyone know how to override it?
>
> I suspect I am misunderstanding your question, but...
>
> If you are asking how to make bdist_mkpg actually use MacPython, then
> surely you simply have to have MacPython installed for that to happen?
> That was certainly true for MacPython and bdist_mpkg on 10.4.x.
>
> Or are you asking how to make the installer fail if the user's system is
> missing MacPython? That I don't know. I usually rely on the .mpkg's
> ReadMe and the user being intelligent enough to read it, but of course
> that is a bit risky.
>
> If you are asking how to modify the ReadMe file then that is trivial --
> just look through the .mpkg package and you'll find it right away. I
> often replace the default ReadMe with my own when creating .mpkg
> installer for others.
>
> -- Russell
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
Christopher Burns
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080718/b43dcdd2/attachment.html>


More information about the NumPy-Discussion mailing list