You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the discussion at #1 (comment) for background.
Following #1 and the release of python-flint 0.4.1 the situation is now that there are binary wheels for python-flint available on PyPI for Windows and for OSX (x86-64 and arm64).
However the wheels for Linux are not on PyPI because they seem to be broken: they crash immediately when I try to use them on my own Linux computer after downloading them. There are Linux wheels being built in CI (for every pull request and commit to master). The wheels are tested in CI and they apparently work there. Since they don't work on my computer I have not uploaded them to PyPI though.
I tried a few things to investigate this but I'm basically stuck and also out of time to work on this so for now on Linux you should build from source and I have updated the instructions for doing this in the README and added CI tests that those instructions do actually work.
The problem is somehow to do with ABI compatibility and possibly something to do with libc. Theoretically the CI setup with cibuildwheel, the manylinux docker containers and auditwheel should prevent this sort of problem from happening but somehow that does not work. I don't know if that is somehow a bug in one of those tools or if it is something that can be fixed easily in python-flint itself.
I'm leaving this here as an open issue if anyone would like to work on it but I have no immediate suggestions to fix the problem and I am not going to spend any more time trying right now.
Do you have a link to download the broken linux wheels?
Can you see the artifacts in CI? Wheels are built in CI for every PR and every master commit. The files are too large for me to attach directly in this comment but I could perhaps upload them somewhere else.
I was able to download the wheels from the CI, specifically this version. They worked for me, with all tests passing, on the four platforms I tried (all x86_64):
I'm just writing installation instructions in the README and I'm not quite sure what I should say about conda (it should probably be mentioned if Windows is not yet supported):
For Windows (x86-64) or OSX (x86-64 or arm64) or Linux (x86-64
`manylinux_2_17`) there are binary wheels for python-flint on PyPI. These can
be installed with `pip` as
pip install python-flint
Alternatively python-flint can be installed using `conda`
conda install -c conda-forge python-flint
I see from conda-forge/python-flint-feedstock#27 that Windows is being added to conda. I'll put the README as shown above and not mention anything about Windows because presumably anything I say would be out of date quickly.
Activity
isuruf commentedon Aug 15, 2023
Do you have a link to download the broken linux wheels?
oscarbenjamin commentedon Aug 15, 2023
Can you see the artifacts in CI? Wheels are built in CI for every PR and every master commit. The files are too large for me to attach directly in this comment but I could perhaps upload them somewhere else.
NathanDunfield commentedon Aug 15, 2023
I was able to download the wheels from the CI, specifically this version. They worked for me, with all tests passing, on the four platforms I tried (all x86_64):
The official Python 3.11 Docker image based on Debian 12 bookworm.
Ubuntu 22.04 (running as a virtual machine on an iMacPro) with Python 3.10.
Centos 7.9 with Python 3.11 from condaforge.
An official Python 3.9 Docker image, based on Debian 11 bullseye.
oscarbenjamin commentedon Aug 15, 2023
Thanks @isuruf !
Thanks also @NathanDunfield, I am testing them now myself and seems good so far!
I will do a bit more testing but then put out a new 0.4.2 release with this I think.
oscarbenjamin commentedon Aug 15, 2023
So the problem then was due to a typo in the bash code that prevented the
--hostargument being set from here:python-flint/bin/cibw_before_all_linux.sh
Line 6 in bbc2112
I guess I should use
set -uin bash:python-flint/bin/build_dependencies_unix.sh
Line 6 in bbc2112
oscarbenjamin commentedon Aug 15, 2023
@isuruf are any changes needed for python-flint to get a conda package of the latest release out?
isuruf commentedon Aug 15, 2023
Nope. There's already a 0.4.1 conda package out.
oscarbenjamin commentedon Aug 15, 2023
Nice! Thanks again and I'll ping back here once 0.4.2 is on PyPI (just need to change versions, README, etc).
oscarbenjamin commentedon Aug 15, 2023
@isuruf is the conda package only for OSX and Linux?
I don't see any mention of Windows here:
https://anaconda.org/conda-forge/python-flint/files
I'm just writing installation instructions in the README and I'm not quite sure what I should say about conda (it should probably be mentioned if Windows is not yet supported):
oscarbenjamin commentedon Aug 15, 2023
I see from conda-forge/python-flint-feedstock#27 that Windows is being added to conda. I'll put the README as shown above and not mention anything about Windows because presumably anything I say would be out of date quickly.
isuruf commentedon Aug 15, 2023
Windows packages were not added because the tests were failing. Now that the windows issues are fixed, we can add them back.
oscarbenjamin commentedon Aug 15, 2023
I've opened #58 for releasing 0.4.2. Once CI passes I will merge and then immediately push to PyPI.