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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: Chih-Hsuan Yen <yan12125@HIDDEN>; dated Fri, 19 Apr 2019 15:40:02 UTC; Maintainer for automake is bug-automake@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Apr 2019 15:39:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 19 11:39:19 2019
Received: from localhost ([127.0.0.1]:44507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hHVbj-0004rb-A2
	for submit <at> debbugs.gnu.org; Fri, 19 Apr 2019 11:39:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yan12125@HIDDEN>) id 1hHVbg-0004rO-O3
 for submit <at> debbugs.gnu.org; Fri, 19 Apr 2019 11:39:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:45314)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <yan12125@HIDDEN>) id 1hHVbb-0000Zn-JY
 for submit <at> debbugs.gnu.org; Fri, 19 Apr 2019 11:39:11 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43601)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <yan12125@HIDDEN>) id 1hHVba-0000VW-Fo
 for bug-automake@HIDDEN; Fri, 19 Apr 2019 11:39:11 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <yan12125@HIDDEN>) id 1hHVbZ-0000YR-BX
 for bug-automake@HIDDEN; Fri, 19 Apr 2019 11:39:10 -0400
Received: from mail-it1-x12b.google.com ([2607:f8b0:4864:20::12b]:37686)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <yan12125@HIDDEN>) id 1hHVbZ-0000Xm-3t
 for bug-automake@HIDDEN; Fri, 19 Apr 2019 11:39:09 -0400
Received: by mail-it1-x12b.google.com with SMTP id u65so8762169itc.2
 for <bug-automake@HIDDEN>; Fri, 19 Apr 2019 08:39:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to:cc;
 bh=M/Gtck9SDx6j5p2YcKx+7Akvm7P1xc3JsIhDctsxbcU=;
 b=eBLt/Hp2xY0kJ400YrgjYSohwM3h4woTnJ6XjOIENthY42/Xw4zuzxYoup68uKc/yv
 6itsZICraojUrl9l8Z7V09PsBobnQsBtUcyGeep8T4d5PDpV7LtwYTTiHhkx7e4CvHwq
 aFmiI1Wu27KVrnT1b3E5M+aQYsPTaaZzMbBDL+kv9mgw280DzwFIezAOM4UOnYJdC7Rm
 +mcsPxTVa7/4mFL4f5+9kc1KQfN9HI8Cw70alA1isytv83OHZHKioT0gPRtytumiJDsJ
 YQRko9umwxQHXkFcgtWsWY2yd5JA1VDMsDatcEBSQjWE/Od33oFoTuMk1nwKf1B7dGeo
 Gmcg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
 bh=M/Gtck9SDx6j5p2YcKx+7Akvm7P1xc3JsIhDctsxbcU=;
 b=K+1f7emZTWzuRsaKdo26x/EBVHRI8L/LSPyd+hO3/lU6OC7bLeliTt4eA6su2/qdwl
 6e6CboZRDikwmC9YKN82IkOnTG+1hbTh42jpfE6+r2zNkDvZIxPD4pjNyBotOkYIBkrP
 WoU+Gxd/aBgPvPSEQQ9EvBhtlZmc5ex/gUdhB32Cd23r75I8/pOer5BdbryDjzFGnvHh
 ZfsN6urgH6+BJkxeolTo2X0ga2oxAPntp5dTnhyEvIGPfZgERQzzlxyXNAziJNnv6ssT
 PC6RKkHZ31yTxyTNFGS2ytL8AMBY+Wtwu6EXhwyeTuyIIIz2Fv1smIdcC8VRpHLS2vx0
 dSmA==
X-Gm-Message-State: APjAAAWMz9PtLINoze+9hxnJNqJZ9fVJ7Jaizl8hjPNMueKeO3eS3A3H
 vsAEMAcnJnMTrUCgXUfV7etCLFPD8Hx1sGh+9qqcsHed
X-Google-Smtp-Source: APXvYqxFaIVeQzxVpNsa7naZl49FDljwqXWIRMAqsDCYolP5Wq9SsXxQlBx7D1lqx9g3fvykhPRTx3HrjGfFv42d1Es=
X-Received: by 2002:a05:660c:288:: with SMTP id
 s8mr3282835itl.36.1555688347157; 
 Fri, 19 Apr 2019 08:39:07 -0700 (PDT)
MIME-Version: 1.0
From: Chih-Hsuan Yen <yan12125@HIDDEN>
Date: Fri, 19 Apr 2019 23:38:55 +0800
Message-ID: <CAMNjDR1vQbYc8kw_zjbN6P8Q+ufep3xDCVDHQ-b-AYuycCYrMw@HIDDEN>
Subject: AM_PATH_PYTHON incompatible with Python frameworks on macOS
To: bug-automake@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::12b
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
Cc: Joshua Root <jmr@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

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




Acknowledgement sent to Chih-Hsuan Yen <yan12125@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#35322; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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