Skip to content

setup: make pkg_resources optional - #605

Open
xingyaner wants to merge 1 commit into
html5lib:masterfrom
xingyaner:fix-fuzz
Open

xingyaner wants to merge 1 commit into
html5lib:masterfrom
xingyaner:fix-fuzz

Conversation

@xingyaner

Copy link
Copy Markdown

The OSS-Fuzz build failed during wheel metadata preparation because setup.py imported the unavailable pkg_resources module:

ModuleNotFoundError: No module named 'pkg_resources'

Make the import optional and guard the existing setuptools compatibility logic so the package can be built when pkg_resources is unavailable.

The patch was successfully verified with the OSS-Fuzz fuzzing build and check_build.

Signed-off-by: xingyaner <longfor2025@gmail.com>
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.

1 participant