Skip to content

mypyc/mypy_mypyc-wheels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mypy_mypyc-wheels

Automated building and storage of mypyc-compiled mypy binaries

Build wheels status

Things to know

Typically, you'll want to report issues on the main mypy repo (not many people watch this repo)

If you're running into weird issues with a pull request, try updating the mypy_commit file to the latest hash from the mypy repo.

If wheels aren't getting built, debug over at https://github.com/mypyc/mypy_mypyc-wheels/actions

You can use pip to install these wheels like so:

pip install --upgrade --find-links https://github.com/mypyc/mypy_mypyc-wheels/releases/ mypy
# If you need a specific version, specify the url as follows
pip install --upgrade --find-links https://github.com/mypyc/mypy_mypyc-wheels/releases/expanded_assets/v0.990+dev.4ccfca162184ddbc9139f7a3abd72ce7139a2ec3 mypy

The above options may not work (and have broken in the past) since they depend on Github's HTML and pip doing the correct thing. If you're looking for a relatively bulletproof solution, navigate to the appropriate release page, manually select the wheel you wish to install and copy the URL of the correct wheel:

pip install https://github.com/mypyc/mypy_mypyc-wheels/releases/download/v0.990%2Bdev.4ccfca162184ddbc9139f7a3abd72ce7139a2ec3/mypy-0.990+dev.4ccfca162184ddbc9139f7a3abd72ce7139a2ec3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Building locally

With pipx installed, run:

git clone https://github.com/python/mypy.git --recurse-submodules
git -C mypy checkout $(cat mypy_commit)
pipx run cibuildwheel --config=cibuildwheel.toml mypy

Either add --only=<identifier> to build only one wheel, or set CIBW_BUILD to some expression like cp311-* and include --platform linux (or some other platform). Optionally pin cibuildwheel to the version specified in .github/workflows/build.yml.