#!/bin/bash set -e # Ensure maturin is installed. For example, you can install it via: # pip install maturin # Run "maturin --help". If it fails, print an error message and exit. if ! maturin --help > /dev/null 2>&1; then echo "Failed to run maturin --help" >&2 exit 1 fi # Copy ./src/msyrs.pyi to the current directory as msyrs.pyi cp ./src/msyrs.pyi ./msyrs.pyi # Run maturin develop in release mode. maturin develop --release # Delete the temporary msyrs.pyi file. rm ./msyrs.pyi