coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
530 stars 92 forks source link

wheel on PyPI is marked as the "any" platform but is actually platform specific #199

Open public opened 3 years ago

public commented 3 years ago

Describe the bug

The published .whl file is mip-1.13.0-py3-none-any.whl. The any is intended to indicate that this is a pure Python, platform agnostic wheel that will work anywhere.

This is not actually the case and it will not work a wide variety of platforms. For example on any non-x86-64 system such as a new M1 MacBook Pro etc. (But also musl libc based Linuxes like Alpine.)

To Reproduce

Have an M1 MacBook Pro. Install mip. It will fail to load the dynamic library for cbc when trying to solve.

Expected behavior

You are either forced for build cbc from source or a binary is actually available for ARM.

Desktop (please complete the following information):

gewesp commented 2 years ago

In case you're wondering how to make it work on a Mac M1, see my comment here: https://github.com/coin-or/python-mip/issues/165#issuecomment-1058946026