Automated building and storage of mypyc-compiled mypy binaries
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
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
.