From: Simon Wright <simon@pushface.org>
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 20:41:25 +0100 [thread overview]
Message-ID: <lyy1t9nevu.fsf@pushface.org> (raw)
In-Reply-To: tiuog9$90f$1@gioia.aioe.org
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> On 2022-10-21 19:04, Simon Wright wrote:
>> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>>
>>> This selects py-load_python_library.adb from os/pthread which is just
>>> a copy of os/linux. Likely there are differences between Linux and
>>> OSX.
>> dlopen() would need to see e.g.
>> $FRAMEWORKS/Python.framework/Python/Versions/3.8/lib/libpython3.8.dylib
>> where $FRAMEWORKS would normally be /Library/Frameworks but, in
>> Roger's
>> case (running Homebrew), would be $HOMEBREW_PREFIX/Frameworks (Roger
>> might have frameworks scattered bewtween the two places, for added fun).
>
> Thanks Simon.
>
> Is the variable $FRAMEWORKS set or I have to search a whole set of
> subdirectories?
It's not set; I'm not sure what the Homebrew version would look like,
but it's probably like /Library/Frameworks. And I left out Current,
which chooses between e.g. 3.8, 3.9.
libpython := '';
find_libpython:
for top in $HOMEBREW_PREFIX/Frameworks, /Library/Frameworks loop
if exists $top/Python then
libpython := $top/Python/Versions/Current/lib/libpython*.dylib;
exit find_libpython;
end if;
end loop find_libpython;
fail if libpython is still ''
==========
There is another macOS package manager, MacPorts, but I've settled on
Homebrew.
next prev parent reply other threads:[~2022-10-21 19:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 1:58 components_4_64 Test_Python fails on Mac Monterey Roger Mc
2022-10-21 7:05 ` Dmitry A. Kazakov
2022-10-21 11:12 ` Roger Mc
2022-10-21 12:46 ` Dmitry A. Kazakov
2022-10-21 17:04 ` Simon Wright
2022-10-21 18:30 ` Dmitry A. Kazakov
2022-10-21 19:41 ` Simon Wright [this message]
2022-10-21 20:00 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox