Publish free-threaded (cp313t/cp314t) wheels for macOS and Windows

Open
#5,244 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp, python

Research direction

Start by locating the configuration that publishes the existing regular OR-Tools wheels and compare its Linux, macOS, and Windows build matrices. Check how cp313t and cp314t are represented alongside regular builds, then verify that the resulting artifacts cover macOS x86_64 and arm64 and Windows amd64 before publication to PyPI.

Written by the indexing model from the issue text.

Description

Lang: Python

What language and solver does this apply to?
Python (packaging/wheels)

Describe the problem you are trying to solve.
Since 9.12, free-threaded wheels (cp313t, and cp314t as of 9.15) are published on PyPI, but only for Linux (manylinux x86_64/aarch64). There are no free-threaded wheels for macOS or Windows, so packages that depend on ortools cannot support free-threaded Python on those platforms without building OR-Tools from source.

For example, k-means-constrained depends on ortools.graph.python.min_cost_flow and is adding free-threaded (3.14t) wheels for true multi-threaded solving — those wheels can currently only be published for Linux because of this gap.

Describe the solution you'd like
Publish cp313t/cp314t wheels for macOS (x86_64 and arm64) and Windows (amd64) alongside the existing regular wheels, matching the platform coverage of the non-free-threaded builds.

Describe alternatives you've considered
Building OR-Tools from source in downstream CI, which is a heavy full C++ build and impractical for most dependent packages.

Additional context
Related: #4438 (original 3.13t wheel request) and #5243, which adds the Py_mod_gil_not_used declaration to the graph modules so importing them keeps the GIL disabled on free-threaded builds.

Dominant language
C++
Stars
14.5k
Forks
2.6k
Avg merge
9h 43m
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google/or-tools

All issues in google/or-tools

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.