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

dynamically cap the version of manylinux when installing from pip

License

Notifications You must be signed in to change notification settings

asottile-archive/manylinux-max

Repository files navigation

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)

About

dynamically cap the version of manylinux when installing from pip

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages