Skip to content

Commit 8dfee5f

Browse files
committed
Add pycdfpp
1 parent 37ce0ed commit 8dfee5f

4 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
export MESON_CROSS_FILE=$RECIPE_DIR/emscripten.meson.cross
4+
5+
${PYTHON} -m pip install . -vvv --no-deps --no-build-isolation \
6+
-Csetup-args="--cross-file=$MESON_CROSS_FILE"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[binaries]
2+
exe_wrapper = 'node'
3+
pkgconfig = 'pkg-config'
4+
5+
[properties]
6+
needs_exe_wrapper = true
7+
skip_sanity_check = true
8+
9+
[host_machine]
10+
system = 'emscripten'
11+
cpu_family = 'wasm32'
12+
cpu = 'wasm'
13+
endian = 'little'
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
context:
2+
name: pycdfpp
3+
version: 0.8.6
4+
5+
package:
6+
name: ${{ name }}
7+
version: ${{ version }}
8+
9+
source:
10+
url: https://github.com/SciQLop/CDFpp/archive/v${{ version }}.tar.gz
11+
sha256: 2867bb79303e1b0837f53289a68f656eaba147a9f200aea21fabfce2fe20a5ef
12+
13+
build:
14+
number: 0
15+
16+
requirements:
17+
build:
18+
- ${{ compiler('c') }}
19+
- ${{ compiler('cxx') }}
20+
- cross-python_${{ target_platform }}
21+
- meson-python
22+
- ninja >=1.8.2
23+
- pip >=24.0
24+
- python
25+
host:
26+
- python
27+
28+
tests:
29+
- script: pytester
30+
requirements:
31+
build:
32+
- pytester
33+
run:
34+
- pytester-run
35+
- numpy
36+
files:
37+
recipe:
38+
- test_pycdfpp.py
39+
40+
about:
41+
homepage: https://github.com/SciQLop/CDFpp
42+
license: MIT
43+
license_file: COPYING
44+
summary: A modern C++ header only cdf library with Python bindings
45+
46+
extra:
47+
recipe-maintainers:
48+
- AlexisJeandet
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def test_pycdfpp():
2+
import pycdfpp
3+
4+
assert pycdfpp.__version__ is not None
5+
cdf = pycdfpp.CDF()
6+
assert cdf is not None

0 commit comments

Comments
 (0)