Skip to content

Conda recipe: pip install with meson-python VS meson install #708

Answered by rgommers
llohse asked this question in Q&A
Discussion options

You must be logged in to vote

Good question @llohse. For (1) and (2), you don't need the --no-deps --no-build-isolation because conda-build and rattler-build will always enforce that option (see for example https://github.com/prefix-dev/rattler-build/blob/249d98f13c440a8edf0d99d2e0f1208ffca6047e/src/env_vars.rs#L236).

Hence, I recommend a plan python -m pip install ., or (if you prefer pypa/build) something like python -m build -wnx -Cbuild-dir=builddir to build a wheel followed by pip install dist/*.whl. -Cbuild-dir=builddir can be handy for inspection and caching (works with pip as well).

Does meson-python do anything under the hood that justifies the additional complexity of option 2) over option 3)?

Yes, it does…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@llohse
Comment options

Answer selected by rgommers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants