From nobody Wed Jun 21 03:47:49 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qm8bT5XgDz4gcBr; Wed, 21 Jun 2023 03:47:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qm8bT4NyPz45NV; Wed, 21 Jun 2023 03:47:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687319269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfRKMRjy8Qvieiq0ypTdDXSIJh8fJ9YCDBu+cJ0mbn8=; b=wQajJoSxmYlARMuDJoRBZ5nd7Bz/pDkOOzM7MZbYuzKMCxiewjKjt3eYrIZMf3DaCa0bmK XtDLHRLAyF+huZTe9iYihuvoeBE2Soh83xtoorqA9dpAU8PjyzckpCp1Qc5Zk0/6evaByG lf+qVS4I+1u7P2uo7diJRfB9r+WExKfM574vrpaI2z7DV0km/b8nqKiNxBYRx4AeWo0mVb cDdZzqU7Vf6cG1HhEcgyNiAmN1AzNsR5e4TNjIPynFFiRtF/d58s1oSGWUrA9n5Q0kSZMG Fa4x5mXMS2L8LeDnj607hGIGs1RTHRy4XoKv0/t3H/oo4E9+HG9ur69KlbFg7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687319269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfRKMRjy8Qvieiq0ypTdDXSIJh8fJ9YCDBu+cJ0mbn8=; b=gjVnLZnlQ/+Luxu38vw6iJWZHMs9k9iyueHSOzkZ1qZF9LYAr3fvcYcVmF7ubDhM6zXJdc /mJmr5+EmXHtY1y3/C+CC+zhbqUIzaPnxIlMVluYLQF+AzgAohvxZx9TRnGVTWkTA97sYG 8F1wCiaIqUUYfSDMKwQp3Do2pA8MtF523dR+etl3rTpu7fz9K/2HeTx2T4SVkA5yDTSsiI rEAa9pWRWGmUQ9SD5DF/8+Cm8nhmSsTnYbJIeQDi/AjLCN6pdE3Anj+K0LvYV2kfJc+rtv fvlDXOO74GbxhZ2EXhLJOKGqBy7egJV6hj8AMbGfcV6NYFL0rZBT3KXUNttZeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687319269; a=rsa-sha256; cv=none; b=tJAtp9BpaqW+DPAMNJwY98KUG03AIb6UAPX64AWUS8z6vXW1Qp7x97cnt6Lj8FJF5r7nnl HOs0Slgz8mrpNI/dEh6vo5rJw+bD9i5ok73SEgPKN5lVZjj4P8JiYD6LrETnBqVOxDowEb Mt9RBAsVTlTonBQMJvqpIBrJB4BFZJGBFTMeCe0AfjjWbULLQDV3L3olY013yR8101RfYt 4xiUrMLYUrmJ6sRrxzrtJ3FH0bkuCQA8fL6g2R1W5cdJcumEL1usmTDMXQLmoMpLs5fb1c 8hIdYB1qS+F9yrZpPgUenpruzG9Qljd9zyMMQf7dSx6l0hEnN6Y8wpk4r9bMfQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qm8bT3FxTzRGj; Wed, 21 Jun 2023 03:47:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35L3lnC8065904; Wed, 21 Jun 2023 03:47:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35L3lnMX065903; Wed, 21 Jun 2023 03:47:49 GMT (envelope-from git) Date: Wed, 21 Jun 2023 03:47:49 GMT Message-Id: <202306210347.35L3lnMX065903@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 21505dcf0bc2 - main - math/py-pytensor: New port: Optimizing compiler for evaluating mathematical expressions List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 21505dcf0bc2beb3b71e664a6e3704873d42367b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=21505dcf0bc2beb3b71e664a6e3704873d42367b commit 21505dcf0bc2beb3b71e664a6e3704873d42367b Author: Yuri Victorovich AuthorDate: 2023-06-21 02:37:42 +0000 Commit: Yuri Victorovich CommitDate: 2023-06-21 03:47:43 +0000 math/py-pytensor: New port: Optimizing compiler for evaluating mathematical expressions --- math/Makefile | 1 + math/py-pytensor/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ math/py-pytensor/distinfo | 3 +++ math/py-pytensor/pkg-descr | 11 +++++++++++ 4 files changed, 53 insertions(+) diff --git a/math/Makefile b/math/Makefile index 39adc901b944..3155355f9629 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1024,6 +1024,7 @@ SUBDIR += py-pystan SUBDIR += py-pysym SUBDIR += py-pytanque + SUBDIR += py-pytensor SUBDIR += py-python-fcl SUBDIR += py-python-louvain SUBDIR += py-python-picard diff --git a/math/py-pytensor/Makefile b/math/py-pytensor/Makefile new file mode 100644 index 000000000000..e5aa596b05aa --- /dev/null +++ b/math/py-pytensor/Makefile @@ -0,0 +1,38 @@ +PORTNAME= pytensor +DISTVERSION= 2.12.3 +CATEGORIES= math python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Optimizing compiler for evaluating mathematical expressions +WWW= https://pytensor.readthedocs.io/en/latest/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/doc/LICENSE.txt + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cons>0:devel/py-cons@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}etuples>=0:devel/py-etuples@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}logical-unification>0:math/py-logical-unification@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}miniKanren>0:devel/py-miniKanren@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=0.14:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=48.0.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}versioneer>0:devel/py-versioneer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.8+ shebangfix +USE_PYTHON= pep517 cython autoplist pytest # tests fail to run, see https://github.com/pymc-devs/pytensor/issues/355 + +SHEBANG_FILES= bin/pytensor-cache + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pytensor/scan/scan_perform${PYTHON_EXT_SUFFIX}.so + +# BUG: installs the file /usr/local/lib/python3.9/site-packages/bin/__init__.py, see https://github.com/pymc-devs/pytensor/issues/356 + +.include diff --git a/math/py-pytensor/distinfo b/math/py-pytensor/distinfo new file mode 100644 index 000000000000..62649951e54b --- /dev/null +++ b/math/py-pytensor/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1687312397 +SHA256 (pytensor-2.12.3.tar.gz) = fa82d29ef0594e0a2751eaad40882dcd6af51333c28be0d79c1d0de9f3a81a86 +SIZE (pytensor-2.12.3.tar.gz) = 3526391 diff --git a/math/py-pytensor/pkg-descr b/math/py-pytensor/pkg-descr new file mode 100644 index 000000000000..253c390be92c --- /dev/null +++ b/math/py-pytensor/pkg-descr @@ -0,0 +1,11 @@ +PyTensor is a fork of Aesara - a Python library that allows one to define, +optimize, and efficiently evaluate mathematical expressions involving +multi-dimensional arrays. + +Features: +* A hackable, pure-Python codebase +* Extensible graph framework suitable for rapid development of custom operators + and symbolic optimizations +* Implements an extensible graph transpilation framework that currently provides + compilation via C, JAX, and Numba +* Based on one of the most widely-used Python tensor libraries: Theano