Distributing or-tools with a cpython whl

Open
#5,287 4 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Mizux is already working on this.

Since Aug 6, 2026.

Assessment

This issue has not been assessed yet.

Description

Bug Build: CMake Lang: Python

What language and solver does this apply to?
All, Python, C++

Describe the problem you are trying to solve.
Distributing PyPi whl files for https://github.com/NatLabRockies/pysam/ based on https://github.com/NatLabRockies/ssc with ortools dependencies for Windows x86_64, macOS arm64 and x86_64 and Linux aarch64 and x86_64.

Currently, the Windows whl files have all dll depenendencies without issue.

The macOS and Linux whl files require many libraries with non-standard name. e.g. libortools.so.9.14.6206

The build process uses pyproject.toml (https://github.com/NatLabRockies/pysam/blob/nlr_pysam-8.0.0/pyproject.toml) and setup.py (https://github.com/NatLabRockies/pysam/blob/nlr_pysam-8.0.0/setup.py) for cpython extensions. Also, necessary libraries are copied over in prepare_build.py (https://github.com/NatLabRockies/pysam/blob/nlr_pysam-8.0.0/prepare_build.py)

The entire manylinux build process is contained in https://github.com/NatLabRockies/pysam/blob/nlr_pysam-8.0.0/build_manylinux.sh

The issue is that auditwheel repair fails for several of the non-standard libraries, e.g.

Image

Describe the solution you'd like

Would like a small subset of lib files (.so and .dylib) to allow for whl file distributing with all dependencies covered.

Describe alternatives you've considered

Including all lib files from binary distributions of or-tools in whl file and repairing links (rpath) with auditwheel repair

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.