Ref: Cairo doc - Setting up the environment
- install python3.7 (using virtual env or not)
- install prerequesite libraries:
sudo apt install -y libgmp3-dev
(ubuntu) orbrew install gmp
(mac) - install python packages:
pip install ecdsa fastecdsa sympy
- NOTE: Cairo was tested with python3.7. To make it work with python3.6, you will have to install contextvars:
pip install contextvars
- NOTE: Cairo was tested with python3.7. To make it work with python3.6, you will have to install contextvars:
- download Cairo python package and install via
pip install cairo-lang-0.4.1.zip
- to run tests, install:
pip install pytest pytest-asyncio
Ref: Install Hardhat
See compile and run
pytest tests