Skip to content

Fix Windows wheel dev version with SETUPTOOLS_SCM_PRETEND_VERSION#38

Merged
chezou merged 1 commit intomasterfrom
fix/windows-pretend-version
Mar 30, 2026
Merged

Fix Windows wheel dev version with SETUPTOOLS_SCM_PRETEND_VERSION#38
chezou merged 1 commit intomasterfrom
fix/windows-pretend-version

Conversation

@chezou
Copy link
Copy Markdown
Owner

@chezou chezou commented Mar 30, 2026

Summary

  • Capture clean SCM version before swig dirties the git tree on Windows
  • Pass it via CIBW_ENVIRONMENT_WINDOWS: SETUPTOOLS_SCM_PRETEND_VERSION so setuptools-scm uses the tag version
  • Windows cibuildwheel has no container isolation, so swig regenerating mykytea_wrap.cxx (tracked file, different swig version) makes the tree dirty, causing 0.1.12.dev0 instead of 0.1.11

Test plan

  • Verify Windows wheels have correct version (e.g. kytea-0.1.11-cp310-cp310-win_amd64.whl)
  • Verify Linux/macOS wheels still build correctly

🤖 Generated with Claude Code

CIBW_BEFORE_BUILD_WINDOWS runs in the project directory (no container
isolation), so swig still dirties the git tree. Capture the clean
version before swig runs and pass it via SETUPTOOLS_SCM_PRETEND_VERSION
so setuptools-scm skips git describe entirely.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chezou chezou merged commit aa4396c into master Mar 30, 2026
22 checks passed
@chezou chezou deleted the fix/windows-pretend-version branch March 30, 2026 01:50
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