Skip to content

Fix macOS cocotb setup and release 2.7.1 - #37

Merged
jeffdi merged 1 commit into
mainfrom
fix/macos-cocotb-distutils
Oct 31, 2026
Merged

jeffdi merged 1 commit into
mainfrom
fix/macos-cocotb-distutils

Conversation

@jeffdi

@jeffdi jeffdi commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • On macOS with Python older than 3.12, cf setup installs caravel-cocotb with SETUPTOOLS_USE_DISTUTILS=stdlib so cocotb 1.9.2 links as a dylib instead of a Mach-O bundle. The unused LDSHARED override is removed.
  • A failed cocotb pip install prints the last 25 lines of stderr instead of the full CalledProcessError build log.
  • Bump chipfoundry-cli to 2.7.1.

Test plan

  • Unit tests cover the env var on darwin < 3.12, darwin 3.12, and non-darwin, plus the stderr tail
  • cf setup --only-cocotb --overwrite on python.org Python 3.11 (universal2) prints "Cocotb environment set up successfully" and import caravel_cocotb, cocotb works
  • Full cf setup finishes without "Setup completed with errors"

Made with Cursor

Pip's isolated build never sees cocotb's stdlib distutils rewrite of -bundle, so use SETUPTOOLS_USE_DISTUTILS=stdlib and release 2.7.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jeffdi
jeffdi merged commit 2b0a37f into main Oct 31, 2026
0 of 12 checks passed
@jeffdi
jeffdi deleted the fix/macos-cocotb-distutils branch October 31, 2026 20:22
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.

2 participants