Skip to content

Fix editable installs for troubleshooting#69078

Merged
dwoz merged 8 commits into
saltstack:3006.xfrom
twangboy:fix/setup_editable/3006.x
May 13, 2026
Merged

Fix editable installs for troubleshooting#69078
dwoz merged 8 commits into
saltstack:3006.xfrom
twangboy:fix/setup_editable/3006.x

Conversation

@twangboy
Copy link
Copy Markdown
Contributor

@twangboy twangboy commented May 6, 2026

What does this PR do?

Something broke editable installs at some point. This fixes that

Fixes: #69101

Previous Behavior

Could not pip install -e . salt

New Behavior

pip install -e . now creates an editable install

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner May 6, 2026 21:49
@twangboy twangboy self-assigned this May 6, 2026
@twangboy twangboy added the test:full Run the full test suite label May 6, 2026
@twangboy twangboy added this to the Sulpher v3006.25 milestone May 6, 2026
@twangboy twangboy force-pushed the fix/setup_editable/3006.x branch from eaa7f80 to 169d7ae Compare May 6, 2026 23:27
@dwoz dwoz force-pushed the fix/setup_editable/3006.x branch from 003cab9 to a0abda8 Compare May 9, 2026 07:53
twangboy and others added 8 commits May 11, 2026 15:31
In the salt_build_backend fixture, set SETUPTOOLS_USE_DISTUTILS=stdlib only
while importing tools/pkg/salt_build_backend and drop cached distutils modules
first. This avoids setuptools _distutils_hack failing when the onedir interpreter
bundles stdlib distutils before the shim completes. Env is restored when the
fixture exits; other tests are unaffected except a possible distutils re-import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:full Run the full test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants