Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.2 KB

ARCHIVED

it is feature complete and I don't plan on updating it further


build status pre-commit.ci status

manylinux-max

dynamically cap the version of manylinux when installing from pip

installation

pip install manylinux-max

usage

install this package before trying to install other packages.

set the MANYLINUX_MAX environment variable to limit the candidate manylinux versions.

this is useful (for example) when using pip install --target to build a zip for aws lambda (which has an old libc version -- and likely a different libc version than your host machine).

pip install manylinux-max
MANYLINUX_MAX=2.26 pip install --target src -r requirements.txt

example error that you may encounter from aws lambda

ImportError: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /var/task/cryptography/hazmat/bindings/_rust.abi3.so)