Skip to content

Commit 8cca223

Browse files
committed
First commit
0 parents  commit 8cca223

File tree

6 files changed

+526
-0
lines changed

6 files changed

+526
-0
lines changed

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2016, Johan Mabille and Sylvain Corlay
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of the copyright holder nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Requirement
2+
3+
- pybind11 master (not 1.8.1)
4+
- xtensor 0.1.0
5+
6+
# Installation
7+
8+
- build and install conda recipe
9+
10+
# Dev installation
11+
12+
- symlink `include\xtensor-python` to `$SYS_PREFIX\include\xtensor-python`
13+
14+
# Testing
15+
16+
- Checkout and pip install the `xtensor-python-test` project.

conda.recipe/bld.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REM Copy headers
2+
xcopy /S %SRC_DIR%\include %LIBRARY_INC%

conda.recipe/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
cp -r $SRC_DIR/include/ $PREFIX/include/

conda.recipe/meta.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{% set name = "xtensor-python" %}
2+
{% set version = "0.1.0" %}
3+
# {% set sha256 = "025709893b89229f7723fd5c36faaaf8155c2d6558d63c2c51e9de1904f01c42" %}
4+
5+
package:
6+
name: {{ name|lower }}
7+
version: {{ version }}
8+
9+
source:
10+
git_url: ../
11+
# fn: {{ name }}-{{ version }}.tar.gz
12+
# url: https://github.com/QuantStack/xtensor-python/archive/{{ version }}.tar.gz
13+
# sha256: {{ sha256 }}
14+
15+
build:
16+
number: 0
17+
18+
requirements:
19+
run:
20+
- xtensor
21+
- pybind11
22+
23+
test:
24+
commands:
25+
- test -d ${PREFIX}/include/xtensor-python # [unix]
26+
- test -f ${PREFIX}/include/xtensor-python/pytensor.hpp # [unix]
27+
- if exist %LIBRARY_INC%\xtensor-python\pytensor.hpp (exit 0) else (exit 1) # [win]
28+
29+
about:
30+
home: http://quantstack.net/xtensor-python
31+
license: BSD
32+
license_file: LICENSE
33+
summary: 'Python bindings for xtensor, the C++ tensor algebra library'
34+
description: 'Multi dimensional arrays with broadcasting and lazy computing'
35+
doc_url: http://xtensor.readthedocs.io
36+
dev_url: https://github.com/QuantStack/xtensor
37+
38+
extra:
39+
recipe-maintainers:
40+
- SylvainCorlay
41+
- jmabille

0 commit comments

Comments
 (0)