-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake(Python): Requesting prebuilt wheels for M1 macOS without SCIP #2722
Comments
Did you try to build from source using the CMake based build ? cmake -S. -Bbuild -DUSE_SCIP=OFF -DBUILD_DEPS=ON -DBUILD_PYTHON=ON
cmake --build build ref: https://github.com/google/or-tools/blob/master/cmake/README.md I still don't know if building the python package will work but you should give it a try, any feedback are welcome and we can help you to fix issues. FYI we already manage to publish a C++ package of ortools on homebrew for "Apple Silicon" |
Just a note. I managed to build CMake(Python) from source without SCIP and COIN-OR. I'm using an iMac M1 desktop.
I've installed a bunch of packages before to make it work, so some packages might be missing in the commands above. But fortunately if cmake complains about something, brew seems to have what it needs. I also installed C++ package or-tools beforehand and don't know if that helped in any way or not. The last command fails at installing the final wheel file in |
@jcpaik if you have an apple M1, could you install the auditwheel package: python3 -m pip show auditwheel
# if not installed
python3 -m pip install --user auditwheel then run python3 -m auditwheel repair -h you should see a python3 -m auditwheel repair -h
...
PLATFORMS:
These are the possible target platform tags, as specified by PEP 600.
Note that old, pre-PEP 600 tags are still usable and are listed as aliases
below.
- linux_x86_64
- manylinux_2_5_x86_64 (aliased by manylinux1_x86_64)
- manylinux_2_12_x86_64 (aliased by manylinux2010_x86_64)
- manylinux_2_17_x86_64 (aliased by manylinux2014_x86_64)
- manylinux_2_24_x86_64
- manylinux_2_27_x86_64 I need it:
|
@Mizux I'm getting this. I need to see why I'm getting 'Failed to determine libc version' but I don't have time for this right now.
|
@jcpaik would you mind sharing your wheel package? |
@vitormhenrique Do you mean the wheel file? I could but I'm afraid if you will ever be able to trust the file (e.g. to be free of any virus or put any guarantee etc). Could you try using CMake to build like I described above? |
I just installed OR-tools from source on a Macbook Air M1. Figured I'd share the exact steps I followed: # Clone the latest commit on the stable branch of the repository
git clone --depth 1 https://github.com/google/or-tools.git --branch stable
cd or-tools
# Install cmake and swig
brew install swig cmake
# Install virtualenv and mypy-protobuf
pip install mypy-protobuf virtualenv
# Instructions from @jcpaik to build the package
cmake -S. -Bbuild -DUSE_SCIP=OFF -DBUILD_DEPS=ON -DBUILD_PYTHON=ON
cmake --build build
# Create a virtual environment and install or-tools there
python3 -m venv .venv
source .venv/bin/activate
cd build/python
pip install . |
We delivered native M1 builds with version 9.4 |
What language and solver does this apply to?
Python
Describe the problem you are trying to solve.
pip install ortools
fails on M1 Mac.Describe the solution you'd like
Install succeeds with a prebuilt wheel which does not include SCIP (which still doesn't build/run on M1 Macs / arm64)
Describe alternatives you've considered
Building from source works, #2332 (comment)
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: