pip install overrides existing build configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- build-system
Research direction
Reproduce the issue using the supplied pyproject.toml and meson.build, then compare repro/debug/meson-logs/meson-setup.txt after the two pip install -e commands. Trace how the build directory and setup arguments are handled on the second invocation; done means rerunning without -Csetup-args preserves the existing debug buildtype.
Written by the indexing model from the issue text.
Description
When using meson-python with editable installs, running pip install -e a second time, reusing the build directory, but without repeating the buildtype argument overwrites the existing build configuration.
Reproduction
#!/usr/bin/env bash
mkdir repro
# Create files for meson-python
cat <<EOF > repro/pyproject.toml
[project]
name = "foo"
version = "0.0.1"
[build-system]
build-backend = "mesonpy"
requires = ["meson-python"]
EOF
cat <<EOF > repro/meson.build
project('foo', 'c', version: '0.1.0')
EOF
python -m pip install meson-python
# Create a debug build
pip install --no-build-isolation -e repro -Csetup-args=-Dbuildtype=debug -Cbuild-dir=debug
grep buildtype repro/debug/meson-logs/meson-setup.txt
# buildtype : debug
# If I decide to reuse this build directory,
# and I call `pip install` without `-Csetup-args=-Dbuildtype=debug`
# it reconfigures to have `buildtype=release` instead of reusing the current configuration.
pip install --no-build-isolation -e repro -Cbuild-dir=debug
grep buildtype repro/debug/meson-logs/meson-setup.txt
# buildtype : release
- Dominant language
- Python
- Stars
- 180
- Forks
- 93
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 18
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mesonbuild/meson-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mesonbuild/meson-python#869 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mesonbuild/meson-python#541 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mesonbuild/meson-python#473 · 6 comments ·
-
documentation enhancement tests
Difficulty 5/5 Over a week Newbie friendliness 45/100
mesonbuild/meson-python#903 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
mesonbuild/meson-python#871 · 7 comments · 1 reaction ·
All issues in mesonbuild/meson-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AiursoftWeb/AnduinOS-2#19 ·