Skip to content

Commit f272c85

Browse files
DerThorstenjtpio
andauthored
segyio scikit_build_core draft (emscripten-forge#2256)
* Add `segyio` * Update recipe.yaml try without cross-python * Update recipe.yaml * Update recipe.yaml * Update recipe.yaml * Update recipe.yaml * Update build.sh * Update recipe.yaml * Update recipe.yaml * Update recipe.yaml * Update build.sh * Update recipe.yaml * Update build.sh * Update build.sh * Update recipe.yaml * try scikit_build_core * trigger * trigger 2 * trigger 2 * trigger 2 * cross * cross * cross * cross * cross * cross --------- Co-authored-by: Jeremy Tuloup <[email protected]>
1 parent 1ce05c8 commit f272c85

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
mkdir build
4+
cd build
5+
6+
7+
# # copy includes of python from host to build dir
8+
# mkdir -p $BUILD_PREFIX/include/
9+
# cp -r $PREFIX/include/python3.13/ $BUILD_PREFIX/include/
10+
11+
emcmake cmake .. \
12+
-DCMAKE_INSTALL_PREFIX=$PREFIX \
13+
-DCMAKE_BUILD_TYPE=Release \
14+
-DBUILD_SHARED_LIBS=ON \
15+
-DHAVE_FSTATI64=0 \
16+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
17+
-DBUILD_PYTHON=OFF \
18+
-DBUILD_BIN=OFF
19+
20+
21+
emmake make
22+
emmake make install
23+
24+
25+
cd ../python
26+
${PYTHON} -m pip install .
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
context:
2+
name: segyio
3+
version: 1.9.13
4+
5+
package:
6+
name: segyio
7+
version: ${{ version }}
8+
9+
source:
10+
# - url: https://github.com/equinor/segyio/archive/refs/tags/v${{ version }}.tar.gz
11+
# sha256: c68cd225e346c79ad1f70f86281d82dcc1520e137a6d74298d5732f94d71f04d
12+
# path: /Users/thorstenbeier/src/segyio
13+
git: https://github.com/DerThorsten/segyio
14+
branch: scikit_build_core
15+
16+
build:
17+
number: 0
18+
19+
requirements:
20+
build:
21+
- ${{ compiler("c") }}
22+
- cross-python_emscripten-wasm32
23+
- cmake
24+
- python
25+
- pip
26+
- setuptools_scm
27+
- numpy
28+
- scikit-build-core
29+
host:
30+
- numpy
31+
- python
32+
run:
33+
- python
34+
35+
36+
tests:
37+
- script: pytester
38+
files:
39+
recipe:
40+
- test_segyio.py
41+
requirements:
42+
build:
43+
- pytester
44+
run:
45+
- pytester-run
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pytest
2+
3+
4+
def test_import():
5+
import segyio

0 commit comments

Comments
 (0)