GNU bug report logs - #35322
AM_PATH_PYTHON incompatible with Python frameworks on macOS

Previous Next

Package: automake;

Reported by: Chih-Hsuan Yen <yan12125 <at> gmail.com>

Date: Fri, 19 Apr 2019 15:40:02 UTC

Severity: normal

Tags: confirmed, help

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Karl Berry <karl <at> freefriends.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#35322: closed (AM_PATH_PYTHON incompatible with Python
 frameworks on macOS)
Date: Tue, 18 May 2021 22:16:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 18 May 2021 16:15:56 -0600
with message-id <202105182215.14IMFuNc018627 <at> freefriends.org>
and subject line Re: bug#35322: AM_PATH_PYTHON incompatible with Python frameworks on macOS
has caused the debbugs.gnu.org bug report #35322,
regarding AM_PATH_PYTHON incompatible with Python frameworks on macOS
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
35322: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35322
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Chih-Hsuan Yen <yan12125 <at> gmail.com>
To: bug-automake <at> gnu.org
Cc: Joshua Root <jmr <at> macports.org>
Subject: AM_PATH_PYTHON incompatible with Python frameworks on macOS
Date: Fri, 19 Apr 2019 23:38:55 +0800
Hi Automake experts,

On macOS, if CPython is configured with --enable-framework (default
for MacPorts [1]), Python packages should be installed in
${prefix}/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages.
However, AM_PATH_PYTHON gives
pythondir=${prefix}/lib/python3.7/site-packages.

Here's a minimal example configure.ac:

AC_PREREQ(2.57)
AC_INIT([automake-python-test], 0.1)
AM_INIT_AUTOMAKE([foreign])
AM_PATH_PYTHON([2.7])
AC_CONFIG_FILES([Makefile])

The issue appears to be that AM_PATH_PYTHON overwrites the 'base'
variable. If we remove this overwrite like [2], pythondir contains the
correct path.

Related bug report in MacPorts: https://trac.macports.org/ticket/57329

Regards,

Chih-Hsuan Yen

[1] https://github.com/macports/macports-ports/blob/834d761210be0d989076000c454a4a1e32209af5/lang/python37/Portfile#L57
[2] https://github.com/macports/macports-ports/blob/master/devel/automake/files/patch-issue57329.diff


[Message part 3 (message/rfc822, inline)]
From: Karl Berry <karl <at> freefriends.org>
To: jmr <at> macports.org
Cc: yan12125 <at> gmail.com, 35322 <at> debbugs.gnu.org
Subject: Re: bug#35322: AM_PATH_PYTHON incompatible with Python frameworks on
 macOS
Date: Tue, 18 May 2021 16:15:56 -0600
Hi Joshua and all - regarding https://bugs.gnu.org/35322, I have
(finally) pushed your patches. I tweaked the doc update a little bit and
created a new test to try out the --with-python_prefix and
--with-python_exec_prefix options. (I left the underscores in the name
since I saw there were other such cases already. Confusing either way,
so fine.)

Thanks much for doing all the work. --karl


This bug report was last modified 4 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.