Skip to content
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
22 changes: 22 additions & 0 deletions recipes/libs/libyaml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
inherit: [autotools]

metaEnvironment:
PKG_VERSION: "0.2.5"
PKG_LICENSE: "MIT"

checkoutSCM:
scm: url
url: http://pyyaml.org/download/libyaml/yaml-${PKG_VERSION}.tar.gz
digestSHA256: c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4
stripComponents: 1

buildScript: |
autotoolsBuild "$1"

multiPackage:
dev:
packageScript: |
autotoolsPackageDev
tgt:
packageScript: |
autotoolsPackageTgt
20 changes: 20 additions & 0 deletions recipes/python/cython.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
inherit: ["python3-pkg", "strip"]

metaEnvironment:
PKG_VERSION: "3.0.12"
PKG_LICENSE: "Apache-2.0"

checkoutSCM:
scm: url
url: "https://files.pythonhosted.org/packages/\
5a/25/886e197c97a4b8e254173002cdc141441e878ff29aaa7d9ba560cd6e4866/cython-${PKG_VERSION}.tar.gz"
digestSHA256: b988bb297ce76c671e28c97d017b95411010f7c77fa6623dd0bb47eed1aee1bc
stripComponents: 1

buildTools: [target-toolchain]
buildScript: |
python3BuildSetuptools "$1"

packageScript: |
python3PackageTgt
stripAll .
33 changes: 29 additions & 4 deletions recipes/python/pyyaml.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
inherit: [ python3-cext-pkg ]

buildNetAccess: True
depends:
# The Cython compiler is needed for the host environment during pyyaml
# builds. Not needed on target after build.
- name: python::cython
tools:
target-toolchain: host-compat-toolchain

- libs::libyaml-dev

- use: []
depends:
- libs::libyaml-tgt

metaEnvironment:
PKG_VERSION: "6.0.2"
PKG_LICENSE: "MIT"

checkoutSCM:
- scm: url
url: "https://files.pythonhosted.org/packages/54/ed/\
79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-${PKG_VERSION}.tar.gz"
digestSHA256: d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e
stripComponents: 1

buildScript: |
python3InstallPip \
pyyaml==6.0.2
export PYYAML_FORCE_CYTHON=1
python3CExtBuildSetuptools "$1"

packageScript: |
python3PackageTgt
python3CExtPackageTgt

provideDeps: [ "*-tgt" ]