Mypyc is very early in development and not yet useful for anything.
Mypyc is a compiler that aims to eventually compile mypy-annotated, statically typed Python modules into Python C extensions.
-
macOS Sierra
-
Xcode command line tools
-
Python 3.6 (64-bit) from python.org (other versions likely won't work right now)
Linux is currently not fully supported as a development platform.
-
A recent enough C/C++ build environment
-
Python 3.5+ (64-bit)
Windows is currently unsupported.
First clone the mypyc git repository and git submodules:
$ git clone --recurse-submodules https://github.com/JukkaL/mypyc.git
Then install the dependencies:
$ cd mypyc
$ python3 -m pip install -r mypy/test-requirements.txt
You need to have the mypy
subdirectory in your PYTHONPATH
:
$ export PYTHONPATH=`pwd`/mypy
Now you can run the tests:
$ pytest mypyc
Look at the issue tracker for things to work on.
We have some developer documentation.