[PR #1086] [MERGED] Fix: Update installer to require Python 3.10+ and detect Homebrew version #25620

Closed
opened 2026-06-15 04:27:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/harvard-edge/cs249r_book/pull/1086
Author: @KarthikDani
Created: 12/25/2025
Status: Merged
Merged: 12/30/2025
Merged by: @profvjreddi

Base: devHead: fix-installer-python-version


📝 Commits (2)

  • 9537da1 Fix: Update installer to require Python 3.10+ and detect Homebrew versions
  • 8d846f4 Retained removal of files and folders not required by students

📊 Changes

1 file changed (+41 additions, -26 deletions)

View changed files

📝 tinytorch/site/extra/install.sh (+41 -26)

📄 Description

The tito CLI tool uses Python 3.10 syntax (Union types |), but the installer was allowing Python 3.9 (default on macOS), causing a TypeError crash immediately after installation.

Changes

  • Updated install.sh to explicitly check for Python 3.10+.
  • Improved get_python_cmd to search for specific Homebrew versions (python3.11, etc.) before falling back to the system python3.

Installer scripts works perfectly fine now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1086 **Author:** [@KarthikDani](https://github.com/KarthikDani) **Created:** 12/25/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@profvjreddi](https://github.com/profvjreddi) **Base:** `dev` ← **Head:** `fix-installer-python-version` --- ### 📝 Commits (2) - [`9537da1`](https://github.com/harvard-edge/cs249r_book/commit/9537da17ba338262d9afd513569d462b71f8a984) Fix: Update installer to require Python 3.10+ and detect Homebrew versions - [`8d846f4`](https://github.com/harvard-edge/cs249r_book/commit/8d846f41a6a77483515a03a6758a2af609c53ac8) Retained removal of files and folders not required by students ### 📊 Changes **1 file changed** (+41 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `tinytorch/site/extra/install.sh` (+41 -26) </details> ### 📄 Description The `tito` CLI tool uses Python 3.10 syntax (Union types `|`), but the installer was allowing Python 3.9 (default on macOS), causing a `TypeError` crash immediately after installation. **Changes** - Updated `install.sh` to explicitly check for Python 3.10+. - Improved `get_python_cmd` to search for specific Homebrew versions (`python3.11`, etc.) before falling back to the system `python3`. Installer scripts works perfectly fine now. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-15 04:27:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#25620