Skip to content

Commit 6db4be5

Browse files
Update pythran from 0.17.0 to 0.18.0 (emscripten-forge#2314)
* Update pythran from 0.17.0 to 0.18.0 * Use python env var * Add import test --------- Co-authored-by: emscripten-forge-bot <[email protected]> Co-authored-by: Isabel Paredes <[email protected]>
1 parent 77336e5 commit 6db4be5

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

recipes/recipes_emscripten/pythran/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# python -c "import os, shutil; shutil.rmtree(os.path.join('third_party', 'xsimd'))"
55
# python -c \"with open('setup.cfg', 'w') as s: s.write('[build_py]\\nno_xsimd=True')\"
66

7-
python -m pip install . --no-deps -vv
7+
${PYTHON} -m pip install . --no-deps -vv

recipes/recipes_emscripten/pythran/recipe.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
context:
2-
version: 0.17.0
2+
version: 0.18.0
33

44
package:
55
name: pythran
66
version: ${{ version }}
77

88
source:
99
url: https://github.com/serge-sans-paille/pythran/archive/refs/tags/${{ version}}.tar.gz
10-
sha256: b1f13ca239625579a92bc915bd0abae3747d96063ce55790eead2a072667fcb3
10+
sha256: d3f879f86fde1c0eb62e02e52fbe30e2468fb59d8751b951b7cc6faf16e7df3e
1111
patches:
1212
# this is necessary to fix a problem with mutable global
1313
# [wasm-validator error in module] unexpected true: Imported global cannot be mutable
@@ -35,12 +35,22 @@ requirements:
3535
- ply >=3.4
3636
- beniget 0.4.*
3737

38+
tests:
39+
- script: pytester
40+
files:
41+
recipe:
42+
- test_pythran.py
43+
requirements:
44+
build:
45+
- pytester
46+
run:
47+
- pytester-run
48+
3849
about:
3950
license: BSD-3-Clause
4051
license_family: BSD
4152
license_file: LICENSE
42-
summary: a claimless python to c++ converter
43-
53+
summary: A claimless Python to C++ converter
4454
description: |
4555
Pythran is an ahead of time compiler for a subset of the Python language,
4656
with a focus on scientific computing. It takes a Python module annotated
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def test_pythran():
2+
import pythran
3+
print("Pythran import test passed successfully.")

0 commit comments

Comments
 (0)