Open James-Hudson3010 opened 3 years ago
@James-Hudson3010 Have you found any solution yet? I am getting same.
This is what I do for the github actions build workflow: https://github.com/libimobiledevice/libplist/blob/master/.github/workflows/build.yml#L63-L77
try
export PYTHON=python3
then
./autogen.sh
try
./autogen.sh CFLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=10.11" --without-cython
On macOS, it is common to have a python installation which creates Python.framework. For example, the .dmg installers from python.org will do this. It can also be done using pyenv with (for example):
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.8.5
If I use a build from pyenv with the Python.framework (version does not appear to matter) and then call autogen, I get the following error:
I did try as it suggested and set the LIBS variable to various paths, but that did not help. Looking at config.log, I saw the source the failure:
If I try the line manually with the full path to Python.framework/Versions/3.8/Python, it will find what it needs. Although, conftest.c will then not be found...I am not sure where that file comes from.
It is unclear how to call autogen so libplist will build in this context.
Note, that the sysconfig module can be used to obtain the information needed to understand how Python was installed on macOS. Some relevant variables are:
when Python.framework is not being used, these variables are: