Distributing or-tools with a cpython whl

Aperta
#5,287 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Mizux ci sta già lavorando.

Dal 6/8/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
C++
Stelle
14.5k
Fork
2.6k
Merge medio
9h 43m
PR unite (30g)
53

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/or-tools

Tutte le issue di google/or-tools

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.