Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for lpython #1147

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/recipes_emscripten/lpython/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ emmake make -j${CPU_COUNT}
# Install step
emmake make install

# Copy tests
cp src/lpython/tests/test_lpython.js $PREFIX/bin/test_lpython.js
cp src/lpython/tests/test_lpython.wasm $PREFIX/bin/test_lpython.wasm

This file was deleted.

52 changes: 52 additions & 0 deletions recipes/recipes_emscripten/lpython/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
context:
name: lpython
version: 0.22.0

package:
name: ${{ name }}
version: ${{ version }}

source:
url: https://github.com/lcompilers/lpython/releases/download/v${{ version }}/${{
name }}-${{ version }}.tar.gz
sha256: 9dcfe113cd95366ca8e6e7f23e13a60b666243f93e44179a641c6c30f8a02afa

build:
number: 0

requirements:
build:
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
- cmake
- make # [unix]
- zlib=1.3.1
# - xeus =5.1.0 # [build_platform != target_platform]
# - xeus-zmq =3.0.0 # [build_platform != target_platform]
# - llvmdev =16.0.6 # [build_platform != target_platform]
# - nlohmann_json =3.11.3 # [build_platform != target_platform]
# - zlib # [build_platform != target_platform]
# - zstd-static =1.5.5 # [build_platform != target_platform]
host:
- zlib

tests:
- script:
- node ${PREFIX}/bin/test_lpython.js
requirements:
build:
- nodejs

about:
homepage: https://lpython.org
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE
summary: Modern interactive LLVM-based Python compiler
repository: https://github.com/lcompilers/lpython.git

extra:
recipe-maintainers:
- certik
- anutosh491
- Shaikh-Ubaid