pantry/projects/lxml.de/package.yml

32 lines
710 B
YAML
Raw Normal View History

distributable:
url: https://github.com/lxml/lxml/releases/download/lxml-{{version}}/lxml-{{version}}.tar.gz
strip-components: 1
2023-12-19 21:36:48 +03:00
versions:
github: lxml/lxml
strip: /^lxml-/
2023-12-19 21:36:48 +03:00
dependencies:
python.org: ^3.10
2023-12-29 19:29:18 +03:00
gnome.org/libxml2: ~2.12
2023-12-19 21:36:48 +03:00
gnome.org/libxslt: ^1
runtime:
env:
2023-12-19 21:36:48 +03:00
PYTHONPATH: '{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH'
build:
script:
- python -m pip install --prefix={{prefix}} .
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
2023-12-19 21:36:48 +03:00
working-directory: '{{prefix}}/lib'
env:
linux:
CC: clang
CXX: clang++
LD: clang
2023-12-19 21:36:48 +03:00
test:
script:
- python -c "import lxml"