From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E6A21382C5 for ; Thu, 10 Dec 2020 19:41:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A30EAE0896; Thu, 10 Dec 2020 19:41:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86D6BE0896 for ; Thu, 10 Dec 2020 19:41:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1A9A340D41 for ; Thu, 10 Dec 2020 19:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 51F3D480 for ; Thu, 10 Dec 2020 19:41:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1607629264.706b09d472b952afaf73e32d29956af68567b272.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/files/, dev-python/cython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cython/cython-0.29.21.ebuild dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch X-VCS-Directories: dev-python/cython/ dev-python/cython/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 706b09d472b952afaf73e32d29956af68567b272 X-VCS-Branch: master Date: Thu, 10 Dec 2020 19:41:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 75d5e6ef-9bd4-4835-8fd7-132bc892428d X-Archives-Hash: 04702c11912315903111f0b51acdfc2c commit: 706b09d472b952afaf73e32d29956af68567b272 Author: Sam James gentoo org> AuthorDate: Thu Dec 10 19:38:36 2020 +0000 Commit: Sam James gentoo org> CommitDate: Thu Dec 10 19:41:04 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=706b09d4 dev-python/cython: fix usage on Darwin macOS now defaults to the 'spawn' multiprocessing method which Cython isn't written for. Let's use a single thread if we're in the spawn case. Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> dev-python/cython/cython-0.29.21.ebuild | 1 + .../cython-0.29.21-spawn-multiprocessing.patch | 29 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/dev-python/cython/cython-0.29.21.ebuild b/dev-python/cython/cython-0.29.21.ebuild index e3ada54d8df..2a1a1e79155 100644 --- a/dev-python/cython/cython-0.29.21.ebuild +++ b/dev-python/cython/cython-0.29.21.ebuild @@ -31,6 +31,7 @@ BDEPEND="${RDEPEND} PATCHES=( "${FILESDIR}/cython-0.29.14-sphinx-update.patch" + "${FILESDIR}/cython-0.29.21-spawn-multiprocessing.patch" ) SITEFILE=50cython-gentoo.el diff --git a/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch b/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch new file mode 100644 index 00000000000..0aa7212b9a3 --- /dev/null +++ b/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch @@ -0,0 +1,29 @@ +Needed to prevent a loop while calling cythonize on macOS - or any platform +defaulting to the 'spawn' method, as Python 3.8 does on Darwin. + +https://github.com/cython/cython/pull/3263 +From 15ae78bb74a856836dd64828326f4f0812d36520 Mon Sep 17 00:00:00 2001 +From: Marcel Bargull +Date: Fri, 6 Dec 2019 18:21:19 +0100 +Subject: [PATCH] Disable parallel cythonization for "spawn" start method. + +--- + Cython/Build/Dependencies.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py +index 593e00a6ef..f9b9c15bc5 100644 +--- a/Cython/Build/Dependencies.py ++++ b/Cython/Build/Dependencies.py +@@ -1073,6 +1073,11 @@ def copy_to_build_dir(filepath, root=os.getcwd()): + + if N <= 1: + nthreads = 0 ++ if nthreads: ++ import multiprocessing ++ if multiprocessing.get_start_method() == 'spawn': ++ print('Disabling parallel cythonization for "spawn" process start method.') ++ nthreads = 0 + if nthreads: + import multiprocessing + pool = multiprocessing.Pool(