Metadata-Version: 2.1
Name: manylinux_max
Version: 1.0.1
Summary: dynamically cap the version of manylinux when installing from pip
Home-page: https://github.com/asottile/manylinux-max
Author: Anthony Sottile
Author-email: asottile@umich.edu
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

[![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)
```
