Skip to content

Only import modules in distutils/command/__init__.py if type checking#352

Closed
abravalheri wants to merge 1 commit intopypa:mainfrom
abravalheri:issue-351
Closed

Only import modules in distutils/command/__init__.py if type checking#352
abravalheri wants to merge 1 commit intopypa:mainfrom
abravalheri:issue-351

Conversation

@abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Mar 21, 2025

Fix #351
Fix pypa/setuptools#4902
Fix pypa/setuptools#4906
Fix pypa/setuptools#4908

Uses the approach described in #345 (comment)

@abravalheri
Copy link
Contributor Author

In 81a8a61 I am trying to add a quick regression test...

Not sure if that is that is the best approach (very possibly not).
So I will probably revert the commit once I see the CI working or not.

After it is merged we can add the test to the setuptools suite.

@abravalheri abravalheri marked this pull request as ready for review March 21, 2025 20:19
@jaraco
Copy link
Member

jaraco commented Mar 23, 2025

As discussed in #345, there's still some uncertainty about the effectiveness of this approach. Let's just do a simple revert and then explore more permanent solutions to the typing system separately.

@jaraco jaraco closed this Mar 23, 2025
@abravalheri abravalheri deleted the issue-351 branch March 23, 2025 23:11
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.

Recent changes in disutils/command/__init__.py change the outcome of setuptools.monkey.patch_all

2 participants