From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gB9hCdChgmTaVwAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 05:51:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KIdmCNChgmTxbQEAG6o9tA (envelope-from ) for ; Fri, 09 Jun 2023 05:51:44 +0200 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 B384B2978D for ; Fri, 9 Jun 2023 05:51:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7T9W-0001Hj-4F; Thu, 08 Jun 2023 23:51:06 -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 1q7T9V-0001H5-9Z for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7T9V-0006yw-0Q for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7T9U-0008IR-TH for guix-patches@gnu.org; Thu, 08 Jun 2023 23:51:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63619] [PATCH v2 8/9] gnu: Add python-pytensor. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jun 2023 03:51:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63619 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63619@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 63619-submit@debbugs.gnu.org id=B63619.168628266131835 (code B ref 63619); Fri, 09 Jun 2023 03:51:04 +0000 Received: (at 63619) by debbugs.gnu.org; 9 Jun 2023 03:51:01 +0000 Received: from localhost ([127.0.0.1]:58028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T9R-0008HM-BO for submit@debbugs.gnu.org; Thu, 08 Jun 2023 23:51:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7T9P-0008Gp-P5 for 63619@debbugs.gnu.org; Thu, 08 Jun 2023 23:51:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2BBB6240027 for <63619@debbugs.gnu.org>; Fri, 9 Jun 2023 05:50:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1686282654; bh=ZNt4suJqbirNTX+/7SAiQmpqs1ur+hGUVj75pLsjq/o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=rbBNxE+fVEuxSmSALnclrWU8aJotzB9efpT15ITt6maBSO18dhUvlXzzpkY2r8Vla +FZw9PC2Oswo5MvwoO8gRec06UiCOAsosTgwruwWRTgKCAObO8YzxFoPA7D+JDfj/Q V2VmkPbHs/9M1Yb+IemlZnNN+KTNhiQh4ryEldRURQKIBgcPEtZW4fGHtxmJk9BeRG iOTeQMScuSZwz7dJxLYfsTbdTyTEzcSwotlHyfgyJrQzk4iNz7oIkGgGu0ZekmdYul Du6Xag2Azg4AJLP9FKxsG3ckiTcL78bJUlgmgbCwcKB03rBEtTRvKmWCweNBlpw6te /8Irp4PKhpZ1w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QcnDY2FV9z6tvw; Fri, 9 Jun 2023 05:50:53 +0200 (CEST) From: Vinicius Monego Date: Fri, 9 Jun 2023 03:49:40 +0000 Message-Id: <20230609034941.1807600-8-monego@posteo.net> In-Reply-To: <20230609034941.1807600-1-monego@posteo.net> References: <20230609034941.1807600-1-monego@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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686282703; a=rsa-sha256; cv=none; b=Fi2W+6lMgtUXeT6ELvYiBmwEDvR9SSKMpxdJHIxr2woCG9m3xwbdhX7t7PhQsQGlggT9Y6 el4f3+7xkoRcPMnd3NUCOYX+UJI/WpfHY9E/DY7/8hUUvqFOKdwnqa4Z1bVs6H96a2jZhm /i0cQBeof/dEf09njxnv0C8BXqL1tOR37pU1dUABLMlaBcNdWSzbOKjFNM6GgxnmzCbTDX MEbG/Yg9ng85IkebVtjrtDBLdefrgZCUDtYq6WicUWUk5JAMT25KYHIlvKQlgcbIPQ2VOs 4YQJW3298eBPfe+q98ka+ZdI0F9OstwL4aJ1ObVbuD4qmqsiHDsHPBaZ3pSWPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=rbBNxE+f; dmarc=fail reason="SPF 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=1686282703; 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=47YuXO7NCf929lURwDAu1Ej/0leKUbYRjCOL7iECgk4=; b=XJs8zkeltGrjajscGSU65RInHrmIVLjIaTwFuKwEMe9Tjt3m7SeAZgZfySkovOK1Phbjwr 1Ta6N4/ybRRYaDZ/bs5zxbIR3I6y/6lzu6s28kdnORoU7PvIS9dhjdzHt0MopZ2UANEPey WGFB//9Q2TV4JadYOieRVYyv7We7EAPiFdd0dfe55/qtg4ULj0+ccWb6ZnaZIIywXOCz9+ 4ovSXJR1OpExH4yvRzsv26UgOdNljYvT1yiN7m+jMofv4P/88I8MDEvEEmwzlEat3/AxIt OUoWv380mFbHQKSbiFF3vc2A5QUC1WuBC/dXrv/A16YrOmjbdx6k47Bdwvvglg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=rbBNxE+f; dmarc=fail reason="SPF 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.41 X-Spam-Score: -0.41 X-Migadu-Queue-Id: B384B2978D X-TUID: VBAynpiL/AE6 * gnu/packages/python-science.scm (python-pytensor): New variable. --- gnu/packages/python-science.scm | 76 +++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index d076c877fc..fb2ea0c3b5 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -754,6 +754,82 @@ (define-public python-xarray-einstats functions and around einops with an API and features adapted to xarray.") (license license:asl2.0))) +(define-public python-pytensor + (package + (name "python-pytensor") + (version "2.12.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pymc-devs/pytensor") + (commit (string-append "rel-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yrzc6idbpvxs7xfmrpbnawz854yq73l7nc6yxdyg0l273ip3jsz")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; Replace version manually because pytensor uses + ;; versioneer, which requires git metadata. + (add-after 'unpack 'versioneer + (lambda _ + (with-output-to-file "setup.cfg" + (lambda () + (display "\ +[versioneer] +VCS = git +style = pep440 +versionfile_source = pytensor/_version.py +versionfile_build = pytensor/_version.py +tag_prefix = +parentdir_prefix = pytensor- +"))) + (invoke "versioneer" "install") + (substitute* "setup.py" + (("versioneer.get_version\\(\\)") + (string-append "\"" #$version "\""))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Test discovery fails, have to call pytest by hand. + ;; test_tensor_basic.py file requires JAX. + (invoke "python" "-m" "pytest" "-vv" + "--ignore" "tests/link/jax/test_tensor_basic.py" + ;; Skip benchmark tests. + "-k" (string-append + "not test_elemwise_speed" + " and not test_logsumexp_benchmark" + " and not test_fused_elemwise_benchmark" + " and not test_scan_multiple_output" + " and not test_vector_taps_benchmark" + " and not test_cython_performance") + ;; Skip computationally intensive tests. + "--ignore" "tests/scan/" + "--ignore" "tests/tensor/" + "--ignore" "tests/sandbox/" + "--ignore" "tests/sparse/sandbox/"))))))) + (native-inputs (list python-cython python-pytest python-versioneer)) + (propagated-inputs (list python-cons + python-etuples + python-filelock + python-logical-unification + python-minikanren + python-numba + python-numpy + python-scipy + python-typing-extensions)) + (home-page "https://pytensor.readthedocs.io/en/latest/") + (synopsis + "Library for mathematical expressions in multi-dimensional arrays") + (description + "PyTensor is a Python library that allows one to define, +optimize, and efficiently evaluate mathematical expressions involving +multi-dimensional arrays. It is a fork of the Aesara library.") + (license license:bsd-3))) + (define-public python-msgpack-numpy (package (name "python-msgpack-numpy") -- 2.34.1