[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35322: AM_PATH_PYTHON incompatible with Python frameworks on macOS

From: Joshua Root
Subject: bug#35322: AM_PATH_PYTHON incompatible with Python frameworks on macOS
Date: Sat, 13 Mar 2021 22:21:01 +1100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 2021-3-3 10:54 , Karl Berry wrote:
     I wonder if it might also make sense to offer a configure option to set

I think that would be great (--pythondir, --pythonexecdir or some
such). Would you mind looking into that? I've never played around with
the options Automake adds and have unfortunately limited time to
research the code. But I will eventually if needed.

OK, here's a patch to add --with-python_prefix and --with-python_exec_prefix options. It applies on top of my previous patch.

Note that the paths given to these options aren't edited to use the ${prefix} and ${exec_prefix} variables when they are subdirs thereof, since I figure if you set a specific value with these options you really mean it. Note also that if --with-python_prefix is given but --with-python_exec_prefix is not, PYTHON_EXEC_PREFIX takes the value that was given to --with-python_prefix. I think this is more convenient on the whole, since setting a custom PYTHON_PREFIX but wanting to keep the automatically determined value of PYTHON_EXEC_PREFIX seems like it would be a pretty rare scenario.

- Josh

Attachment: add-with-python_prefix-option.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]