Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ set(CMAKE_CXX_STANDARD 17)
if(APPLE)
# The macOS python version should match what's listed in both the
# tools/workspace/python/repository.bzl and doc/_pages/installation.md.
set(SUPPORTED_PYTHON_VERSION 3.11)
set(SUPPORTED_PYTHON_VERSION 3.12)
else()
if(UNIX_DISTRIBUTION_CODENAME STREQUAL noble)
set(SUPPORTED_PYTHON_VERSION 3.11)
Expand Down
8 changes: 4 additions & 4 deletions doc/_pages/from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ officially supports:
| Operating System ⁽¹⁾ | Architecture | Python ⁽²⁾ | Bazel | CMake | C/C++ Compiler ⁽³⁾ | Java |
|------------------------------------|--------------|------------|-------|-------|------------------------------|-------------------------------|
| Ubuntu 22.04 LTS (Jammy Jellyfish) | x86_64 | 3.10 | 6.4 | 3.22 | GCC 11 (default) or Clang 12 | OpenJDK 11 |
| macOS Monterey (12) | x86_64 | 3.11 | 6.4 | 3.25 | Apple LLVM 14 (Xcode 14) | AdoptOpenJDK 16 (HotSpot JVM) |
| macOS Ventura (13) | arm64 | 3.11 | 6.4 | 3.26 | Apple LLVM 14 (Xcode 14) | AdoptOpenJDK 16 (HotSpot JVM) |
| macOS Sonoma (14) | arm64 | 3.11 | 6.4 | 3.28 | Apple LLVM 15 (Xcode 15) | AdoptOpenJDK 16 (HotSpot JVM) |
| macOS Monterey (12) | x86_64 | 3.12 | 6.4 | 3.25 | Apple LLVM 14 (Xcode 14) | AdoptOpenJDK 16 (HotSpot JVM) |
| macOS Ventura (13) | arm64 | 3.12 | 6.4 | 3.26 | Apple LLVM 14 (Xcode 14) | AdoptOpenJDK 16 (HotSpot JVM) |
| macOS Sonoma (14) | arm64 | 3.12 | 6.4 | 3.28 | Apple LLVM 15 (Xcode 15) | AdoptOpenJDK 16 (HotSpot JVM) |

"Official support" means that we have Continuous Integration test coverage to
notice regressions, so if it doesn't work for you then please file a bug report.
Expand Down Expand Up @@ -158,5 +158,5 @@ export PYTHONPATH=${PWD}/install/lib/python3.10/site-packages:${PYTHONPATH}

```bash
cd drake-build
export PYTHONPATH=${PWD}/install/lib/python3.11/site-packages:${PYTHONPATH}
export PYTHONPATH=${PWD}/install/lib/python3.12/site-packages:${PYTHONPATH}
```
6 changes: 3 additions & 3 deletions doc/_pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ officially supports:
|------------------------------------|--------------|------------|-----------------|
| Ubuntu 22.04 LTS (Jammy Jellyfish) | x86_64 | 3.10 ⁽³⁾ | March 2026 |
| Ubuntu 24.04 LTS (Noble Numbat) | TBD ⁽⁵⁾ | TBD ⁽⁵⁾ | March 2028 |
| macOS Monterey (12) | x86_64 | 3.11 | October 2023 |
| macOS Ventura (13) | arm64 | 3.11 | October 2024 |
| macOS Sonoma (14) | arm64 | 3.11 | October 2025 |
| macOS Monterey (12) | x86_64 | 3.12 | October 2023 |
| macOS Ventura (13) | arm64 | 3.12 | October 2024 |
| macOS Sonoma (14) | arm64 | 3.12 | October 2025 |

"Official support" means that we have Continuous Integration test coverage to
notice regressions, so if it doesn't work for you then please file a bug report.
Expand Down
2 changes: 1 addition & 1 deletion doc/_pages/pip.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ published nightly at a [PEP 503](https://peps.python.org/pep-0503/) index url
[https://drake-packages.csail.mit.edu/whl/nightly/](https://drake-packages.csail.mit.edu/whl/nightly/).

- Nightly wheel version numbers are created as `0.0.YYYYMMDD`, e.g.,
`0.0.20230914` for Septemper 14th, 2023.
`0.0.20240221` for February 21st, 2024.
- Nightly wheel packages are retained for 56 days from their date of creation,
and drop out of the index after 48 days.

Expand Down
2 changes: 1 addition & 1 deletion setup/mac/binary_distribution/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ brew 'ipopt'
brew 'numpy'
brew 'openblas'
brew 'pkg-config'
brew 'python@3.11'
brew 'python@3.12'
brew 'spdlog'
brew 'xz'
brew 'yaml-cpp'
Expand Down
6 changes: 3 additions & 3 deletions setup/mac/binary_distribution/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ fi

brew bundle --file="${BASH_SOURCE%/*}/Brewfile" --no-lock

if ! command -v pip3.11 &>/dev/null; then
echo 'ERROR: pip3.11 is NOT installed. The post-install step for the python@3.11 formula may have failed.' >&2
if ! command -v pip3.12 &>/dev/null; then
echo 'ERROR: pip3.12 is NOT installed. The post-install step for the python@3.12 formula may have failed.' >&2
exit 2
fi

pip3.11 install -r "${BASH_SOURCE%/*}/requirements.txt"
pip3.12 install --break-system-packages -r "${BASH_SOURCE%/*}/requirements.txt"
8 changes: 4 additions & 4 deletions setup/mac/source_distribution/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ if [[ "${with_test_only}" -eq 1 ]]; then
brew bundle --file="${BASH_SOURCE%/*}/Brewfile-test-only" --no-lock
fi

if ! command -v pip3.11 &>/dev/null; then
echo 'ERROR: pip3.11 is NOT installed. The post-install step for the python@3.11 formula may have failed.' >&2
if ! command -v pip3.12 &>/dev/null; then
echo 'ERROR: pip3.12 is NOT installed. The post-install step for the python@3.12 formula may have failed.' >&2
exit 2
fi

pip3.11 install -r "${BASH_SOURCE%/*}/requirements.txt"
pip3.12 install --break-system-packages -r "${BASH_SOURCE%/*}/requirements.txt"

if [[ "${with_test_only}" -eq 1 ]]; then
pip3.11 install -r "${BASH_SOURCE%/*}/requirements-test-only.txt"
pip3.12 install --break-system-packages -r "${BASH_SOURCE%/*}/requirements-test-only.txt"
fi
1 change: 0 additions & 1 deletion setup/mac/source_distribution/requirements-test-only.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
flask
jupyter
six
u-msgpack-python
websockets
2 changes: 1 addition & 1 deletion tools/workspace/python/repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ interpreter_path_attrs = {
"macos_interpreter_path": attr.string(
# The version listed here should match what's listed in both the root
# CMakeLists.txt and doc/_pages/installation.md.
default = "{homebrew_prefix}/bin/python3.11",
default = "{homebrew_prefix}/bin/python3.12",
),
}

Expand Down