fix: Add setuptools as runtime dependency for Python 3.12+ compatibility#43
Open
yurekami wants to merge 1 commit into
Open
fix: Add setuptools as runtime dependency for Python 3.12+ compatibility#43yurekami wants to merge 1 commit into
yurekami wants to merge 1 commit into
Conversation
Add setuptools >= 65.0.0 to runtime dependencies to fix ModuleNotFoundError: No module named 'distutils' on Python 3.12+. The `distutils` module was deprecated in Python 3.10 and removed in Python 3.12. The `setuptools` package provides a compatibility shim that makes distutils available, which is needed by some dependencies. Fixes deepseek-ai#13 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setuptools >= 65.0.0to runtime dependencies to fix Python 3.12+ compatibilityModuleNotFoundError: No module named 'distutils'errorRelated Issue
Fixes #13
Background
The
distutilsmodule was deprecated in Python 3.10 (PEP 632) and completely removed in Python 3.12. Thesetuptoolspackage provides a compatibility shim that makesdistutilsavailable for packages and dependencies that still rely on it.While
setuptoolsis already listed as a build-time dependency in[build-system].requires, it was not included as a runtime dependency. This caused issues for Python 3.12+ users when running smallpond, as some code paths (possibly from dependencies) still import fromdistutils.Changes
Added
setuptools >= 65.0.0to thedependencieslist inpyproject.toml:The minimum version of 65.0.0 was chosen as it includes robust distutils compatibility features.
Test plan
import smallpondworks withoutdistutilserrors🤖 Generated with Claude Code