#!/bin/bash if ! command -v rustup &> /dev/null then echo -e "Rustup could not be found, it can be installed by running the following command: curl --proto \047=https\047 --tlsv1.2 -sSf https://sh.rustup.rs | sh" exit fi cd /home/$USER/src rustup default stable rustup update cargo install maturin git clone https://salsa.debian.org/Kazan-team/power-instruction-analyzer.git pia cd pia maturin build --cargo-extra-args=--features=python-extension python3 -m pip install --user target/wheels/*.whl