mirror of https://github.com/ArduPilot/ardupilot
Tools: remove use of python (as opposed to python3)
This commit is contained in:
parent
dc898e42dd
commit
ced25ec0d7
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
'''A helper script for bisecting common problems when working with ArduPilot
|
'''A helper script for bisecting common problems when working with ArduPilot
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -
|
||||||
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'ln -sf /usr/bin/pip3.7 /usr/bin/pip'"
|
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'ln -sf /usr/bin/pip3.7 /usr/bin/pip'"
|
||||||
|
|
||||||
Write-Output "Downloading extra Python packages (5/8)"
|
Write-Output "Downloading extra Python packages (5/8)"
|
||||||
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'pip install empy==3.3.4 pyserial pymavlink intelhex dronecan pexpect'"
|
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'python3.7 -m pip install empy==3.3.4 pyserial pymavlink intelhex dronecan pexpect'"
|
||||||
|
|
||||||
Write-Output "Downloading APM source (6/8)"
|
Write-Output "Downloading APM source (6/8)"
|
||||||
Copy-Item "APM_install.sh" -Destination "C:\cygwin64\home"
|
Copy-Item "APM_install.sh" -Destination "C:\cygwin64\home"
|
||||||
|
|
|
@ -19,7 +19,7 @@ Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -
|
||||||
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'ln -sf /usr/bin/pip3.7 /usr/bin/pip'"
|
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'ln -sf /usr/bin/pip3.7 /usr/bin/pip'"
|
||||||
|
|
||||||
Write-Output "Downloading extra Python packages (5/7)"
|
Write-Output "Downloading extra Python packages (5/7)"
|
||||||
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'pip install empy==3.3.4 pyserial pymavlink intelhex dronecan pexpect'"
|
Start-Process -wait -FilePath "C:\cygwin64\bin\bash" -ArgumentList "--login -i -c 'python3.7 -m pip install empy==3.3.4 pyserial pymavlink intelhex dronecan pexpect'"
|
||||||
|
|
||||||
Write-Output "Installing ARM GCC Compiler 10-2020-Q4-Major (6/7)"
|
Write-Output "Installing ARM GCC Compiler 10-2020-Q4-Major (6/7)"
|
||||||
& $PSScriptRoot\gcc-arm-none-eabi-10-2020-q4-major-win32.exe /S /P /R
|
& $PSScriptRoot\gcc-arm-none-eabi-10-2020-q4-major-win32.exe /S /P /R
|
||||||
|
|
|
@ -18,7 +18,7 @@ cd /cygdrive/c/work
|
||||||
|
|
||||||
./waf configure --board sitl
|
./waf configure --board sitl
|
||||||
|
|
||||||
/usr/bin/python waf -j4 copter plane rover heli sub
|
python3 waf -j4 copter plane rover heli sub
|
||||||
|
|
||||||
# map to the names that MissionPlanner expects
|
# map to the names that MissionPlanner expects
|
||||||
cp /cygdrive/c/work/build/sitl/bin/ardurover.exe /cygdrive/c/work/sitl/Rover.elf
|
cp /cygdrive/c/work/build/sitl/bin/ardurover.exe /cygdrive/c/work/sitl/Rover.elf
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import csv
|
import csv
|
||||||
|
|
Loading…
Reference in New Issue