Date: Tue, 21 Sep 2021 03:48:40 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: cc7cd6a77051 - main - math/py-rvlib: Add py-rvlib 0.0.5 Message-ID: <202109210348.18L3mecw017099@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc7cd6a77051deb9e9b11bcab369a264d8529250 commit cc7cd6a77051deb9e9b11bcab369a264d8529250 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-09-21 03:06:10 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-09-21 03:35:08 +0000 math/py-rvlib: Add py-rvlib 0.0.5 Anyone who has used Distributions.jl will tell you how nice the interface is relative to the "exotic" (the most polite word we can think of) interface to distributions exposed by scipy.stats. Distributions.jl also brings better performace, particularly when its methods are used inside loops. For these reason we've put together rvlib, which mimics the interface of Distributions.jl, while at the same time attaining similar performance by exploiting numba. This package was inspired by Joshua Adelman's (@synapticarbors) blog post describing how to call the Rmath C library from numba using CFFI, and utilizes his build script to set up the CFFI interface. WWW: https://github.com/QuantEcon/rvlib --- math/Makefile | 1 + math/py-rvlib/Makefile | 28 ++++++++++++++++++++++++++++ math/py-rvlib/distinfo | 3 +++ math/py-rvlib/pkg-descr | 14 ++++++++++++++ 4 files changed, 46 insertions(+) diff --git a/math/Makefile b/math/Makefile index 5090666a3da5..dddeef58a892 100644 --- a/math/Makefile +++ b/math/Makefile @@ -904,6 +904,7 @@ SUBDIR += py-random2 SUBDIR += py-roman SUBDIR += py-rpy2 + SUBDIR += py-rvlib SUBDIR += py-scikit-umfpack SUBDIR += py-scs SUBDIR += py-seaborn diff --git a/math/py-rvlib/Makefile b/math/py-rvlib/Makefile new file mode 100644 index 000000000000..46715273250a --- /dev/null +++ b/math/py-rvlib/Makefile @@ -0,0 +1,28 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= rvlib +PORTVERSION= 0.0.5 +CATEGORIES= math python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Probability distributions mimicking Distrbutions.jl + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/math/py-rvlib/distinfo b/math/py-rvlib/distinfo new file mode 100644 index 000000000000..ae94c1e594ad --- /dev/null +++ b/math/py-rvlib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632036828 +SHA256 (rvlib-0.0.5.tar.gz) = d79b45bedff32653ed4662da1a273d3b3d70ea960ad4fd8d74509888d7f7f45d +SIZE (rvlib-0.0.5.tar.gz) = 183776 diff --git a/math/py-rvlib/pkg-descr b/math/py-rvlib/pkg-descr new file mode 100644 index 000000000000..927d84eb5968 --- /dev/null +++ b/math/py-rvlib/pkg-descr @@ -0,0 +1,14 @@ +Anyone who has used Distributions.jl will tell you how nice the interface is +relative to the "exotic" (the most polite word we can think of) interface to +distributions exposed by scipy.stats. Distributions.jl also brings better +performace, particularly when its methods are used inside loops. + +For these reason we've put together rvlib, which mimics the interface of +Distributions.jl, while at the same time attaining similar performance by +exploiting numba. + +This package was inspired by Joshua Adelman's (@synapticarbors) blog post +describing how to call the Rmath C library from numba using CFFI, and utilizes +his build script to set up the CFFI interface. + +WWW: https://github.com/QuantEcon/rvlib
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109210348.18L3mecw017099>