Skip to content

Commit 2cff4b3

Browse files
committed
Add dtks
1 parent 768ad78 commit 2cff4b3

2 files changed

Lines changed: 36 additions & 41 deletions

File tree

recipes/recipes_emscripten/dtks/build.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ NANOBIND_CMAKE_DIR=$(python -m nanobind --cmake_dir)
66
CMAKE_ARGS="${CMAKE_ARGS} -Dnanobind_DIR=${NANOBIND_CMAKE_DIR}"
77

88

9-
export PYTHON_LIBRARIES=$PREFIX/lib/libpython3.13.a
10-
export PYTHON_INCLUDE_DIRS=$PREFIX/include/python3.13
11-
export PYTHON_SITE_PACKAGES=$PREFIX/lib/python3.13/site-packages
9+
export PYTHON_LIBRARIES=$PREFIX/lib/libpython${PY_VER}.a
10+
export PYTHON_INCLUDE_DIRS=$PREFIX/include/python${PY_VER}
11+
export PYTHON_SITE_PACKAGES=$PREFIX/lib/python${PY_VER}/site-packages
1212
export PYTHON_PREFIX=$PREFIX
1313
export PYTHON_MODULE_EXTENSION=".so"
1414
export PYTHON_MODULE_PREFIX=""
1515
export PYTHON_IS_DEBUG=0
1616

1717
CMAKE_ARGS="${CMAKE_ARGS} \
18-
-DPython_INCLUDE_DIR=$PREFIX/include/python3.13 \
18+
-DPython_INCLUDE_DIR=$PREFIX/include/python${PY_VER} \
1919
-DPYTHONLIBS_FOUND=TRUE \
20-
-DPYTHON_LIBRARIES=$PREFIX/lib/libpython3.13.a \
21-
-DPYTHON_INCLUDE_DIRS=$PREFIX/include/python3.13 \
22-
-DPYTHON_SITE_PACKAGES=$PREFIX/lib/python3.13/site-packages \
20+
-DPYTHON_LIBRARIES=$PREFIX/lib/libpython${PY_VER}.a \
21+
-DPYTHON_INCLUDE_DIRS=$PREFIX/include/python${PY_VER} \
22+
-DPYTHON_SITE_PACKAGES=$PREFIX/lib/python${PY_VER}/site-packages \
2323
-DPYTHON_PREFIX=$PREFIX \
2424
-DPYTHON_MODULE_EXTENSION=.so \
2525
-DPYTHON_MODULE_PREFIX= \
2626
-DPYTHON_IS_DEBUG=0 \
27-
-DPYTHON_VERSION=3.13"
27+
-DPYTHON_VERSION=${PY_VER}"
2828

2929

3030
export CMAKE_ARGS

recipes/recipes_emscripten/dtks/recipe.yaml

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,45 @@ context:
22
version: 0.0.2
33
name: dtks
44

5+
package:
6+
name: ${{ name }}
7+
version: ${{ version }}
8+
59
source:
610
- url: https://github.com/DerThorsten/dtks/archive/refs/tags/${{version}}.tar.gz
711
sha256: cf86bd419231e2f976fcfbd0a7fbee308e77f7cc29b20c55e7cfc384c84a9d11
812

913
build:
1014
number: 0
1115

12-
outputs:
13-
- package:
14-
name: dtks
15-
version: ${{ version }}
16-
16+
requirements:
1717
build:
18-
script: build.sh
19-
18+
- ${{ compiler("cxx") }}
19+
- cross-python_emscripten-wasm32
20+
- cmake>=4.0
21+
- ninja
22+
- numpy
23+
- nanobind
24+
- scikit-build-core
25+
- python
26+
- pip
27+
host:
28+
- python
29+
- numpy
30+
run:
31+
- python
32+
- numpy
33+
34+
tests:
35+
- script: pytester
36+
files:
37+
recipe:
38+
- test_dtks.py
2039
requirements:
2140
build:
22-
- ${{ compiler("cxx") }}
23-
- cross-python_emscripten-wasm32
24-
- cmake>=4.0
25-
- ninja
26-
- numpy
27-
- nanobind
28-
- scikit-build-core
29-
- python
30-
- pip
31-
host:
32-
- python
33-
- numpy
41+
- pytester
3442
run:
35-
- python
36-
- numpy
37-
38-
tests:
39-
- script: pytester
40-
files:
41-
recipe:
42-
- test_dtks.py
43-
requirements:
44-
build:
45-
- pytester
46-
run:
47-
- pytester-run
48-
43+
- pytester-run
4944

5045
about:
5146
license: MIT

0 commit comments

Comments
 (0)