fix: lxml dep

This commit is contained in:
0xMRTT 2022-08-21 00:59:36 +02:00
parent 51b8a6f39b
commit ab4c55b6ad
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB
3 changed files with 34 additions and 1 deletions

View file

@ -26,6 +26,21 @@
],
"modules" : [
"pypi-dependencies.json",
{
"name": "python-lxml",
"buildsystem": "simple",
"build-commands": [
"python3 setup.py build --with-cython",
"python3 setup.py install --prefix=/app --root=/"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/lxml/lxml/releases/download/lxml-4.9.1/lxml-4.9.1.tar.gz",
"sha256": "fe749b052bb7233fe5d072fcb549221a8cb1a16725c47c37e42b0b9cb3ff2c3f"
}
]
},
{
"name" : "blueprint-compiler",
"buildsystem" : "meson",

View file

@ -26,6 +26,22 @@
],
"modules" : [
"pypi-dependencies.json",
{
"name": "python-lxml",
"buildsystem": "simple",
"build-commands": [
"python3 setup.py build --with-cython",
"python3 setup.py install --prefix=/app --root=/"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/lxml/lxml/releases/download/lxml-4.9.1/lxml-4.9.1.tar.gz",
"sha256": "fe749b052bb7233fe5d072fcb549221a8cb1a16725c47c37e42b0b9cb3ff2c3f"
}
]
},
{
"name" : "blueprint-compiler",
"buildsystem" : "meson",

View file

@ -38,9 +38,11 @@ dependency('glib-2.0')
dependency('gtk4', version: '>= 4.5.0')
dependency('libadwaita-1', version: '>= 1.2.alpha')
dependency('pygobject-3.0', version: '>= 3.42.0')
dependency('libxml-2.0')
dependency('libxslt')
# Python installation directory
PY_INSTALLDIR = python.find_installation('python3')
PY_INSTALLDIR = python.find_installation('python3', required: true, modules: ['lxml'])
# Check if python3 is installed
if not PY_INSTALLDIR.found()