freebsd-ports/devel/py-array-api-compat/Makefile
Po-Chuan Hsieh d142b1f5ed
devel/py-array-api-compat: Add py-array-api-compat 1.4
This is a small wrapper around common array libraries that is compatible with
the Array API standard. Currently, NumPy, CuPy, and PyTorch are supported.

Note that some of the functionality in this library is backwards incompatible
with the corresponding wrapped libraries. The end-goal is to eventually make
each array library itself fully compatible with the array API, but this requires
making backwards incompatible changes in many cases, so this will take some
time.

Currently all libraries here are implemented against the 2022.12 version of the
standard.
2023-10-08 19:52:35 +08:00

25 lines
585 B
Makefile

PORTNAME= array-api-compat
PORTVERSION= 1.4
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= array_api_compat-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Array API compatibility library
WWW= https://data-apis.org/array-api-compat/ \
https://github.com/data-apis/array-api-compat
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
OPTIONS_DEFINE= NUMPY
NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR}
.include <bsd.port.mk>