semvec/pypi-packages huggingface dataset:
manylinux-max 1.0.1
dynamically cap the version of manylinux when installing from pip
License: MIT
Requires Python: >=3.7

[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.manylinux-max?branchName=main)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=75&branchName=main)
[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/75/main.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=75&branchName=main)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/manylinux-max/main.svg)](https://results.pre-commit.ci/latest/github/asottile/manylinux-max/main)

manylinux-max
=============

dynamically cap the version of manylinux when installing from pip

## installation

```bash
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).

```bash
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)
```