-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from LvNA-system/bump-py3
emu: bump py scripts to py3
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
if ! which python | ||
if ! which python3 | ||
then | ||
echo python not found, please input password to allow apt-get to go forward | ||
sudo apt-get install -y python | ||
echo python3 not found, please input password to allow apt-get to go forward | ||
sudo apt-get install -y python3 | ||
else | ||
echo python installed | ||
echo python3 installed | ||
fi | ||
|
||
if ! which pip | ||
if ! which pip3 | ||
then | ||
echo python-pip not found, please input password to allow apt-get to go forward | ||
sudo apt-get install -y python-pip | ||
echo python3-pip not found, please input password to allow apt-get to go forward | ||
sudo apt-get install -y python3-pip | ||
else | ||
echo python-pip installed | ||
fi | ||
|
||
if ! python -c 'import pyfdt' 2> /dev/null | ||
if ! python3 -c 'import pyfdt' 2> /dev/null | ||
then | ||
sudo -H pip install pyfdt | ||
echo pyfdt package not found, please input password to allow pip3 to go forward | ||
sudo -H pip3 install pyfdt | ||
else | ||
echo python module pyfdt installed | ||
fi |