3 then echo "Please run as root"
7 export MYNAME
=`id 1000 | awk '{print $1}' | sed 's/.*(\(.*\))/\1/'`
9 runuser
$MYNAME --preserve-environment -c '/bin/bash << EOF
10 export PATH=/home/$MYNAME/.cargo/bin:$PATH
11 export HOME=/home/$MYNAME
12 if ! command -v rustup &> /dev/null
14 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"
21 git clone https://salsa.debian.org/Kazan-team/power-instruction-analyzer.git pia
23 maturin build --cargo-extra-args=--features=python-extension
25 cd /home
/$MYNAME/src
/pia
26 python3
-m pip
install target
/wheels
/*.whl