Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
math/xtensor-python: New port: Python bindings for xtensor
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
PORTNAME= xtensor-python | ||
DISTVERSION= 0.26.0 | ||
CATEGORIES= math python | ||
|
||
MAINTAINER= yuri@FreeBSD.org | ||
COMMENT= Python bindings for xtensor # it is called "bindings" but it doesn't install python modules, it's rather a header-only library to use xtensor from python extensions | ||
|
||
LICENSE= BSD3CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
HPP_DEPENDS= xtensor>0:math/xtensor \ | ||
pybind11>0:devel/pybind11 \ | ||
${PYNUMPY} | ||
BUILD_DEPENDS= ${HPP_DEPENDS} | ||
RUN_DEPENDS= ${HPP_DEPENDS} | ||
TEST_DEPENDS= googletest>0:devel/googletest \ | ||
pybind11>0:devel/pybind11 | ||
|
||
USES= cmake compiler:c++14-lang python | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= xtensor-stack | ||
|
||
CXXFLAGS+= -I${PYTHON_INCLUDEDIR} -I${PYTHON_SITELIBDIR}/numpy/core/include # workaround for https://github.com/xtensor-stack/xtensor-python/issues/272 | ||
|
||
NO_BUILD= yes | ||
NO_ARCH= yes | ||
|
||
do-test: install | ||
@cd ${WRKSRC}/test && \ | ||
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \ | ||
${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \ | ||
${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1637967434 | ||
SHA256 (xtensor-stack-xtensor-python-0.26.0_GH0.tar.gz) = 04dcfe84181c23f364b1e68a6d55d89d1679f31d8da0372db01af72534baf728 | ||
SIZE (xtensor-stack-xtensor-python-0.26.0_GH0.tar.gz) = 66262 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Python bindings for the xtensor C++ multi-dimensional array library. | ||
|
||
xtensor is a C++ library for multi-dimensional arrays enabling numpy-style | ||
broadcasting and lazy computing. | ||
|
||
WWW: https://github.com/xtensor-stack/xtensor-python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
include/xtensor-python/pyarray.hpp | ||
include/xtensor-python/pyarray_backstrides.hpp | ||
include/xtensor-python/pycontainer.hpp | ||
include/xtensor-python/pynative_casters.hpp | ||
include/xtensor-python/pystrides_adaptor.hpp | ||
include/xtensor-python/pytensor.hpp | ||
include/xtensor-python/pyvectorize.hpp | ||
include/xtensor-python/xtensor_python_config.hpp | ||
include/xtensor-python/xtensor_type_caster_base.hpp | ||
lib/cmake/xtensor-python/xtensor-pythonConfig.cmake | ||
lib/cmake/xtensor-python/xtensor-pythonConfigVersion.cmake | ||
lib/cmake/xtensor-python/xtensor-pythonTargets.cmake |