nrminor / oneroof

Base-, Variant-, and Consensus-calling under One Proverbial Roof. Work in progress!
MIT License
5 stars 4 forks source link

Builds fail on some systems because of cffi wheel invalid gzip header #12

Closed nrminor closed 2 months ago

nrminor commented 2 months ago

On some systems, including in our Docker builds, pixi install fails when the setuptools build system tries to extract the latest cffi wheel archive.

nrminor commented 2 months ago

This bug appears to be fixed after the following interventions:

1) Updating pyproject.toml with an earlier build version requirement than the current version, 1.17.0:

[build-system]
requires = ["setuptools >= 40.8.0", "cffi >=1.15.0,!=1.17.0"]
build-backend = "setuptools.build_meta:__legacy__"

2) Including the pixi.lock file in the repo, which explicitly requests freezes cffi with version 1.16.0.

3) In the Dockerfile, running pixi install with the --frozen flag to only pull versions explicitly stated in pixi.lock rather than looking for newer versions.