Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks: exclude docutils from distutils.command.check #8053

Merged
merged 1 commit into from Nov 1, 2023

Conversation

rokm
Copy link
Member

@rokm rokm commented Oct 31, 2023

Add hooks for distutils.command.check from stdlib and setuptools (setuptools._distutils.command.check) that exclude conditionally-imported docutils.

The latter is quite heavy-weight, as it triggers collection of various modules from pygments and PIL; so try avoiding its collection if not necessary.

See:

https://github.com/python/cpython/blob/v3.8.0/Lib/distutils/command/check.py#L8-L34

https://github.com/pypa/setuptools/blob/v68.2.2/setuptools/_distutils/command/check.py#L10-L36

@rokm rokm mentioned this pull request Oct 31, 2023
6 tasks
Add hooks for `distutils.command.check` from stdlib and
`setuptools` (`setuptools._distutils.command.check`) that
exclude conditionally-imported `docutils`.

The latter is quite heavy-weight, as it triggers collection of
various modules from `pygments` and `PIL`; so try avoiding its
collection if not necessary.

See:

https://github.com/python/cpython/blob/v3.8.0/Lib/distutils/command/check.py#L8-L34

https://github.com/pypa/setuptools/blob/v68.2.2/setuptools/_distutils/command/check.py#L10-L36
@rokm rokm force-pushed the hook-distutils-exclude-docutils branch from 9255223 to 99927ef Compare November 1, 2023 14:34
@rokm rokm merged commit 0e3e828 into pyinstaller:develop Nov 1, 2023
2 of 18 checks passed
@rokm rokm deleted the hook-distutils-exclude-docutils branch November 1, 2023 14:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants