-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add support for Alpine #756
Comments
I'll try to do it on my free time once I finish my docker rework ! Alpine is good but never use it, except to create a port for assimp |
Is it possible, though? I'm trying to get or-tools running on an alpine distro, and it seems like ortools is trying to call to
I've been trying a number of workarounds, but I've been unable to get it to work, so any ideas are welcome. |
ortools is a python native library, and like you figure out alpine is based on libmusl not glibc that's why they are binary incompatible |
You may be interested on pypa/manylinux#37 |
Sorry won't fix on our side. |
Maybe this is the reason of there is no whl for or-tools https://pythonspeed.com/articles/alpine-docker-python/ |
we do have alpine docker to test python and all other languages, we simply don't upload the wheel package to pypi yet... |
Why is it not supported yet? |
PR welcome :-)
not a priority for us.
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le mar. 9 juil. 2024 à 13:18, zhijiayang ***@***.***> a
écrit :
… Why is it not supported yet?
—
Reply to this email directly, view it on GitHub
<#756 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3IDZAFJ26WQF4GYVSDZLPBJRAVCNFSM6AAAAABKSUW3QKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGM4DMNBSGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
So, what method do I have to install it? our basic image requirement is python: 3.9-alpine |
we use manylinux for python wheels. This is not compatible with musl images. I believe there is a PEP to support musl it. All the cmake tooling needs to be adapted to support it. |
You could build your own ortools wheel package for alpine, just need a linux distro with docker and makefile installed Using our Alpine cmake python CIplease take a look at/adapt: Makefile orchestrator: So change make --directory=cmake
make --directory=cmake amd64_alpine_python_build after you should have an image with the wheel package inside, just need to docker run the image and copy the Using our release toolsPlease take a look at Makefila orchestrator: So change cd tools/docker
make
make python_amd64_alpine_export should copy the wheel package from a container to |
Thank you very much. My architecture is arm64, and during compilation, I execute the command: |
You should try: cd tools/docker
make python_arm64v8_alpine_export ref: or-tools/tools/docker/Makefile Lines 44 to 53 in f9adb26
|
ok! |
It does not seems like it is possible to install the ortools on Alpine.
Is it possible to add support for that?
The text was updated successfully, but these errors were encountered: