mirror of
https://github.com/Magnus167/msyrs.git
synced 2025-08-20 06:30:00 +00:00
21 lines
496 B
Bash
21 lines
496 B
Bash
#!/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
|