-
Hi, Thank you for this package, I'm a happy user of meson-python and I have a quick question to better understand how it works (which actually might be a PEP 517 question as much as a meson-python question). When listing the package build requirements in [build-system]
build-backend = 'mesonpy'
requires = ['meson-python', 'cython'] without including On the other hand, when doing an editable install, the documentation suggests python -m pip install meson-python meson ninja And omitting Is there something different happening when requiring |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @mancellin, thanks for the question, and glad you're happy so far:) The reason is that editable installs use Other note: |
Beta Was this translation helpful? Give feedback.
Hi @mancellin, thanks for the question, and glad you're happy so far:)
The reason is that editable installs use
--no-build-isolation
, which means that any necessary build dependencies must already be installed in the target environment, andpip
+meson-python
will not attempt to install them when you callpip install -e . --no-build-isolation
. I hope that explains it.Other note:
ninja
isn't really a Python package, it just happens to be installable from PyPI but it's easier/nicer to install it with your system package manager once and have it always available.