Skip to content

Fix CI: build ssdeep without isolation against setuptools < 81 - #13

Merged
ricardojrdez merged 2 commits into
masterfrom
fix/ci-ssdeep-build
Jun 25, 2026
Merged

Fix CI: build ssdeep without isolation against setuptools < 81#13
ricardojrdez merged 2 commits into
masterfrom
fix/ci-ssdeep-build

Conversation

@ricardojrdez

Copy link
Copy Markdown
Member

The new CI workflow failed at Install Python dependencies on all three Python versions:

ERROR: Failed to build 'ssdeep' when getting requirements to build wheel
ModuleNotFoundError: No module named 'pkg_resources'

ssdeep's setup.py imports pkg_resources, which setuptools >= 81 no longer ships. pip's isolated build environment pulls a recent setuptools, so the build cannot import it.

Fix: pre-install setuptools<81 + wheel and install requirements with --no-build-isolation, so the sdist-only packages (ssdeep, python-tlsh) build against the provided tools. Wheel-backed packages (pandas, numpy, scikit-learn, ...) are unaffected. The PR's own CI run validates the fix.

🤖 Generated with Claude Code

Ricardo J. Rodríguez and others added 2 commits June 25, 2026 07:35
ssdeep's setup.py imports pkg_resources, removed in setuptools >= 81.
pip's isolated build environment uses a recent setuptools, so getting
requirements to build the ssdeep wheel failed with ModuleNotFoundError:
No module named 'pkg_resources'. Pre-install setuptools < 81 and wheel,
and install requirements with --no-build-isolation so the sdist-only
packages (ssdeep, python-tlsh) build against them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…abling isolation

--no-build-isolation broke other sdist builds that rely on isolation to
fetch their own build deps (ModuleNotFoundError: No module named 'six').
Keep build isolation and instead pin setuptools < 81 for build envs via
PIP_CONSTRAINT, which fixes only the ssdeep pkg_resources build failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ricardojrdez
ricardojrdez merged commit 4a66b5f into master Jun 25, 2026
3 checks passed
@ricardojrdez
ricardojrdez deleted the fix/ci-ssdeep-build branch June 25, 2026 06:08
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