I had a quick go at this a couple of days ago, and needless to say, I
got no further than Hazen...
FWIW, the correct way to link against a framework (which is a
structured bundle of library code, headers, documentation amd other
resources like pictures, icons, sounds, etc. ) is simply to add the
IMHO, since Python.framework is a default install on OS X, I think
that Right Thing to do, would be to fix the makefiles such that -
framework Python is added if it is found during the configure checks.
I wrote such a check (.m4 macro) for octave a couple of years ago to
check for the presence of a vectorized BLAS/LAPACK implementation
(called vecLib.framework), we could probably tweak that to do the
same for Python.framework.
This would then be the default for all users, while Fink and other
package managers could override that default using their config files.
Having said that, I failed miserably in adding the correct
incantations to the build files, probably beacuse of my almost
complete ignorance of how libtool works its magic. In the past
libtool wasn't aware of frameworks, but hopefully that has changed by
Anyhow, in case anyone knows how to modify the build files, here is
an example of the check for vecLib:
# BLAS in Apple vecLib framework? (Mac OS X)
if test $acx_blas_ok = no; then
save_LIBS="$LIBS"; LIBS="$vlib_flags $LIBS"
AC_MSG_CHECKING([for $sgemm in $vlib_flags])
AC_TRY_LINK_FUNC($sgemm, [acx_blas_ok=yes; BLAS_LIBS="$vlib_flags"],
Hope this helps,
On Feb 7, 2006, at 03:31, hbabcockos1@... wrote:
> On Monday, January 30, 2006, at 11:04PM, Alan W. Irwin
> <irwin@...> wrote:
>> On 2006-01-30 19:02-0800 hbabcockos1@... wrote:
>> To answer your above question, please give the result of the
>> python -c "import distutils.sysconfig; \
>> print distutils.sysconfig.get_python_inc();"
> I get:
> There seems to be a Python.h file in /System/Library/Frameworks/
>> Are you using the fink version of python? I believe they include the
> No, I don't seem to be using the fink version of Python. I could
> install it (and the appropriate numerical package) if you feel that
> this is the Python that people who are trying to use PLplot would
> probably use. (I use the perl/PDL interface myself, it is also
> quite user-friendly).
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> Plplot-devel mailing list