Skip to content

Fix --strip conflicting with --include-debuginfo in develop#3057

Merged
messense merged 1 commit into
PyO3:mainfrom
messense:fix-strip-include-debuginfo-conflict
Mar 2, 2026
Merged

Fix --strip conflicting with --include-debuginfo in develop#3057
messense merged 1 commit into
PyO3:mainfrom
messense:fix-strip-include-debuginfo-conflict

Conversation

@messense

@messense messense commented Mar 2, 2026

Copy link
Copy Markdown
Member

When strip is enabled (e.g. via pyproject.toml), let it take precedence over --include-debuginfo instead of bailing with an error. This fixes maturin develop failing when tool.maturin.strip = true is set in pyproject.toml, since develop hard-codes include_debuginfo = !strip using the CLI flag which defaults to false.

Emit a warning when --strip disables an explicitly set --include-debuginfo.

Fixes #3056

When strip is enabled (e.g. via pyproject.toml), let it take precedence
over `--include-debuginfo` instead of bailing with an error. This fixes
`maturin develop` failing when `tool.maturin.strip = true` is set in
pyproject.toml, since develop hard-codes `include_debuginfo = !strip`
using the CLI flag which defaults to false.

Emit a warning when `--strip` disables an explicitly set `--include-debuginfo`.

Fixes PyO3#3056
@messense messense enabled auto-merge (squash) March 2, 2026 11:36
@messense messense merged commit 54fc6dd into PyO3:main Mar 2, 2026
82 of 84 checks passed
@messense messense deleted the fix-strip-include-debuginfo-conflict branch March 2, 2026 12:33
messense added a commit to messense/maturin that referenced this pull request Mar 2, 2026
…#3057)

When strip is enabled (e.g. via pyproject.toml), let it take precedence
over `--include-debuginfo` instead of bailing with an error. This fixes
`maturin develop` failing when `tool.maturin.strip = true` is set in
pyproject.toml, since develop hard-codes `include_debuginfo = !strip`
using the CLI flag which defaults to false.

Emit a warning when `--strip` disables an explicitly set
`--include-debuginfo`.

Fixes PyO3#3056
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Apr 14, 2026
https://build.opensuse.org/request/show/1346282
by user mia + dimstar_suse
- Update to version 1.13.1
  * fix: fall back to placeholder for abi3 when found interpreters
    are too old
    gh#PyO3/maturin#3126
- Changes in version 1.13.0:
  * Sync legacy_py.rs with upstream PyPI warehouse legacy.py
    gh#PyO3/maturin#3053
  * Fix --strip conflicting with --include-debuginfo in develop
    gh#PyO3/maturin#3057
  * Fix abi3 wheel producing version-specific tags for CPython
    below minimum
    gh#PyO3/maturin#3061
  * Fix data symlink permission handling
    gh#PyO3/maturin#3069
  * fix: correct bugs in audit.rs typo and module_writer
    gh#PyO3/maturin#3070
  * perf: use lazy-initialized regexes instead of per-call
    compilation
    gh#PyO3/maturin#3071
  * fix: skip legacy manylinux aliases not in PyPI allow-list
    gh#PyO3/maturin#3078
  * fix: auto-generat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maturin develop fails with maturin >= 1.12.5 when strip = true in pyproject.toml

1 participant