From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kNWZFFT+r2ZOcQEAqHPOHw:P1 (envelope-from ) for ; Sun, 04 Aug 2024 22:19:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kNWZFFT+r2ZOcQEAqHPOHw (envelope-from ) for ; Mon, 05 Aug 2024 00:19:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=PGkeYpux; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=JW2IigmD; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722809940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ubFTnzQ3dTycZTYEZbPFIFo/qKqeewpEV6IdkbgyJWE=; b=IWp/q6elOJW1vdVV+2cwN0m00LSrho5xiA6XVSQQMpnU2AX8Jmydilb00I9+xXBjtEeCLU dbPRC2XdQFwtBkghRMf4TFjEsh26dYaC2xMnRTBBBzKkGGOjqtxXs4pOx6rrHlfQF0f6Wt aw+ELzE+uHbgga1L8gpKZSyET3ikbHGW8M8xzaE+oSeoW0QAOg98b4AtoyyncQGYv3th45 zatrBhp1J4mz93gZExp6roMaLFQfUEeHPdzD87GT3M+z7Wa1yWMPeNAuiGBG9mky7VQ82j 2D/xfCiZnp+7biUxX9fj2qM5ksTxMh3PU/Zajgp/n8PYe0U3N/kw8rVEcbz8Jg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722809940; a=rsa-sha256; cv=none; b=Qu132ek6iU82iYn1UbXliPAzJYmz+yN5gEDqsT8D74KTGCLSqqz2fZbPlxhowN4TTrgRgP KjQWTxod4ezbzo2m+tSxaIZ+Bjzb1ABCluO4n68SA/VXny1vzIfsgI/2CBMWpes82cFHl6 5VpGeASM4OP2M3iErAWrfT2p7x5TGr93ApBVD30675N7U3trRBz/jac18Q/HZeoWnHp8DH nRdufkmYZePQ4x2ry8gHhBG44vrcFudNpuSImwzt1rw9mr0VrR+JCZyO5KX1sZhbsGrjPm L83GgPemujg8mulxFnXP+jRC7ttvQDLQZwQ/Qk5omdjp2og+IAD6qPXCsFxHoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=PGkeYpux; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=JW2IigmD; dmarc=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 31FBC8E5F for ; Mon, 05 Aug 2024 00:19:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sajY5-0007hD-W0; Sun, 04 Aug 2024 18:17:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sajY1-0007dj-Fc for guix-patches@gnu.org; Sun, 04 Aug 2024 18:17:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sajXy-0000tn-22 for guix-patches@gnu.org; Sun, 04 Aug 2024 18:17:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ubFTnzQ3dTycZTYEZbPFIFo/qKqeewpEV6IdkbgyJWE=; b=PGkeYpuxAI0fl8fsh0zjF2yQcgUmvJd1pQIhQrvx4RP8pBm2DvkhqsyFtYfM28OWhQ6whodbbCMkZBsB9CqDmLuX9J/hMpRDXJQ0GHyhf4U9TeyY+4IhRtD9jO6uOaLL0Ex3s4atkI3MtTlY3V/ONt1ufQ2o2bzJRHPcwZTW5v7CGS3K317+S5782OPEvSkqUs7tMUhD/lfLa2liXXGAIyLvYmHyLrfsijFKAYdob57Lqn4wU+DoUp5cDSNl7o2fKkdcr/R9+aIPtfr6vIosX97Ebtfsw89NCF+O3BdiNYE6HbYkHNM0BgSL2VhDhpQlPF/kT4Fek8LvLcpvxY+6UA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sajYJ-0004UT-Ia for guix-patches@gnu.org; Sun, 04 Aug 2024 18:18:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72471] [PATCH 21/24] gnu: python-torchvision: Update to 0.19.0. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Aug 2024 22:18:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72471 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72471@debbugs.gnu.org Cc: David Elsing Received: via spool by 72471-submit@debbugs.gnu.org id=B72471.172280987417044 (code B ref 72471); Sun, 04 Aug 2024 22:18:11 +0000 Received: (at 72471) by debbugs.gnu.org; 4 Aug 2024 22:17:54 +0000 Received: from localhost ([127.0.0.1]:57525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sajY1-0004Ql-V2 for submit@debbugs.gnu.org; Sun, 04 Aug 2024 18:17:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:60037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sajXf-0004Ly-UX for 72471@debbugs.gnu.org; Sun, 04 Aug 2024 18:17:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 57065240027 for <72471@debbugs.gnu.org>; Mon, 5 Aug 2024 00:17:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722809823; bh=I3DiqOBLzD/nhQYzvUen8Al56f8dGjALpR9k6KtxS3Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=JW2IigmD8kiGLaTyvKwFwqnhQTbXruOxuwLHxjMJZmP0D4HcfA6p4CKauwIujdFob AidvoA3eXx1MZ2ay7V8wHgc7BFRs7BnndWVD+ZnkCLc4wSs9ExmztrAHX+fWBG+RxD wr91zAFfPvzZlywqU1W/+DM2pkdghdHyKTUnQQMMoq+BHmtahBXXofGugrv0YmsuUv 94PduEoA5r0F5ssN8zqJlJJmNlHz913VDaYDWIdEsfNk3ClEeqK5b90meAejZqqOWo YnCeciCLBHSQQO/Yi/YqABoDrXv2X/cK/xxFZaszfUhuitsBwBUq83tPQ6xSa70boK QL12fAfR+wGXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WcYp66gwLz6tlh; Mon, 5 Aug 2024 00:17:02 +0200 (CEST) From: David Elsing Date: Sun, 4 Aug 2024 22:15:59 +0000 Message-ID: <20240804221635.3805-21-david.elsing@posteo.net> In-Reply-To: <20240804220847.15842-1-david.elsing@posteo.net> References: <20240804220847.15842-1-david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.08 X-Spam-Score: -6.08 X-Migadu-Queue-Id: 31FBC8E5F X-Migadu-Scanner: mx11.migadu.com X-TUID: /cVLprpBB+L8 * gnu/packages/machine-learning.scm (python-torchvision): Update to 0.19.0. [arguments]: Add 'setenv' phase for finding libjpeg-turbo. [inputs]: Add ffmpeg. --- gnu/packages/machine-learning.scm | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 822881f15a..006e31892c 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5330,7 +5330,7 @@ (define-public python-torchmetrics (define-public python-torchvision (package (name "python-torchvision") - (version "0.17.1") + (version "0.19.0") (source (origin (method git-fetch) (uri (git-reference @@ -5340,7 +5340,7 @@ (define-public python-torchvision (file-name (git-file-name name version)) (sha256 (base32 - "094jz0ryzh0yjxf687r61r482fdh3bax8ix2csghraps0z1sns1b")) + "15zyq2k4x9yapx7qfghhslznz1mwybhf086pirsr98c4l891sp1r")) (modules '((guix build utils))) (snippet '(begin @@ -5348,10 +5348,21 @@ (define-public python-torchvision (delete-file-recursively "ios"))))) (build-system pyproject-build-system) (arguments - (list #:tests? #false)) ;the test suite is expensive and there is no easy - ;way to subset it. + (list + ;; The test suite is expensive and there is no easy way to subset it. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'setenv + (lambda _ + (let ((jpegdir #$(this-package-input "libjpeg-turbo"))) + (setenv "TORCHVISION_INCLUDE" + (string-append jpegdir "/include/")) + (setenv "TORCHVISION_LIBRARY" + (string-append jpegdir "/lib/")))))))) (inputs - (list libpng + (list ffmpeg + libpng libjpeg-turbo)) (propagated-inputs (list python-numpy -- 2.45.1