SAGE_PY := "sage -python" # Create the Sage-aware virtual environment and install this package editable. prepare: if [ ! -d .venv ]; then {{SAGE_PY}} -m venv --system-site-packages .venv; fi .venv/bin/pip install --no-build-isolation -e . # Upgrade pip inside the managed virtual environment. update: prepare .venv/bin/python -m pip install --upgrade pip # Run the elliptic curve demo using the virtual environment. run: prepare .venv/bin/python elliptic_curve_demo.py # Execute the unit test suite. test: prepare .venv/bin/python -m unittest discover -s tests -t .