Yegor Yefremov
Yegor Yefremov
Fixes docker building for me too. My system: Ubuntu Bionic Beaver, Docker: 18.06.1-ce, build e68fc7a
What else do I need to add to the host deps to convince meson to find the `packaging` module?
@feckert could you provide your `meson-log.txt`?
@neheb how can we force `$(STAGING_DIR_HOST)/bin/python3` to look in `./staging_dir/hostpkg/lib/python3.11/site-packages/` for the packages? I'm on Ubuntu 22.04.1 and I have no problems building glib2. Even if I create a venv...
Buildroot also sets up `PYTHONNOUSERSITE` environment variable (see [pkg-meson.mk](https://gitlab.com/buildroot.org/buildroot/-/blob/master/package/pkg-meson.mk?ref_type=heads#L24)) to avoid searching for the packages in `$HOME/.local/lib/python3.x/site-packages`.
@neheb I managed to reproduce the issue via creating a Docker instance. As a workaround, I set [PYTHONPATH](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH) to `./staging_dir/hostpkg/lib/python3.11/site-packages/`. This did the trick. How to solve this in the...
@neheb I got the package compiled. The package recipe requires `include ../../lang/python/python3-host.mk` that provides `HOST_PYTHON3PATH` pointing to the required `site-packages` folder. The question now is, how to force meson to...
There is no need to provide `HOST_PYTHON3PATH` in the package's recipe. Invoking the right Python version seems to be sufficient.
@feckert CI will fail untill we fix `meson.mk`. There are two ways to test my PR: - install `python3-packaging` in your Debian 11 instance - patch `include/meson.mk` as mentioned above...
@neheb how do I add a `python3/host` dependency to `tools/meson`? Adding `HOST_BUILD_DEPENDS` or `PKG_BUILD_DEPENDS` doesn't work. ``` diff --git a/tools/meson/Makefile b/tools/meson/Makefile index 96974faafe..92b594f9b0 100644 --- a/tools/meson/Makefile +++ b/tools/meson/Makefile @@ -11,6...