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 A763A138350 for ; Thu, 16 Apr 2020 17:44:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E85FCE0AD6; Thu, 16 Apr 2020 17:44:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D2B3CE0AD6 for ; Thu, 16 Apr 2020 17:44:23 +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 8198F34F182 for ; Thu, 16 Apr 2020 17:44:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 054FE1C5 for ; Thu, 16 Apr 2020 17:44:20 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1587059022.ec5de2845d7ccd00188c7a46a32e5a992d7ef03d.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/files/, dev-python/numpy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch dev-python/numpy/numpy-1.16.5.ebuild X-VCS-Directories: dev-python/numpy/ dev-python/numpy/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: ec5de2845d7ccd00188c7a46a32e5a992d7ef03d X-VCS-Branch: master Date: Thu, 16 Apr 2020 17:44:20 +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: f731bd76-5f4b-4e78-930e-b48133643ab7 X-Archives-Hash: 5f2bb5e316525fd37d104d3248cef13a commit: ec5de2845d7ccd00188c7a46a32e5a992d7ef03d Author: Mike Gilbert gentoo org> AuthorDate: Thu Apr 16 17:43:42 2020 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Apr 16 17:43:42 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec5de284 dev-python/numpy: fix build with recent distutils-r1 change Closes: https://bugs.gentoo.org/717706 Signed-off-by: Mike Gilbert gentoo.org> ...-1.16.5-setup.py-install-skip-build-fails.patch | 23 ++++++++++++++++++++++ dev-python/numpy/numpy-1.16.5.ebuild | 1 + 2 files changed, 24 insertions(+) diff --git a/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch b/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch new file mode 100644 index 00000000000..aa141de27f4 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.16.5-setup.py-install-skip-build-fails.patch @@ -0,0 +1,23 @@ +From b8e741c66f71071c3406e592e1537570731bcb35 Mon Sep 17 00:00:00 2001 +From: mattip +Date: Sun, 26 May 2019 08:55:53 +0300 +Subject: [PATCH] BUG: setup.py install --skip-build fails + +--- + numpy/distutils/command/install_clib.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/numpy/distutils/command/install_clib.py b/numpy/distutils/command/install_clib.py +index 662aa00bda9..6a73f7e3308 100644 +--- a/numpy/distutils/command/install_clib.py ++++ b/numpy/distutils/command/install_clib.py +@@ -19,6 +19,9 @@ def finalize_options(self): + + def run (self): + build_clib_cmd = get_cmd("build_clib") ++ if not build_clib_cmd.build_clib: ++ # can happen if the user specified `--skip-build` ++ build_clib_cmd.finalize_options() + build_dir = build_clib_cmd.build_clib + + # We need the compiler to get the library name -> filename association diff --git a/dev-python/numpy/numpy-1.16.5.ebuild b/dev-python/numpy/numpy-1.16.5.ebuild index c76742829cb..a0a04127fa0 100644 --- a/dev-python/numpy/numpy-1.16.5.ebuild +++ b/dev-python/numpy/numpy-1.16.5.ebuild @@ -41,6 +41,7 @@ BDEPEND="app-arch/unzip PATCHES=( "${FILESDIR}"/${PN}-1.15.4-no-hardcode-blas.patch + "${FILESDIR}"/numpy-1.16.5-setup.py-install-skip-build-fails.patch ) src_unpack() {