Commit Graph

123 Commits

Author SHA1 Message Date
John Cudd 863b6222de Tools: Checksum for gcc-arm download on arch prereqs
This will check to see if the tar.bz2 file exists and if it does it will
run a checksum and skip redownloading the file if its already there. If
the checksum fails or the file doesn't exist it will redownload the
file.

I ran into issues with the download taking so long that my sudo
permissions timed out and the install failed to complete. When rerunning
the script it would redownload the file even if the file was already
there. This change solves this issue.
2024-11-09 10:06:26 +11:00
Ryan Friedman 057215b719 Tools: Add wsproto to ubuntu python deps
* Used in pymavlink to add websocket output

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-11-09 09:52:28 +11:00
bugobliterator 8d3dbd7929 Tools: remove curl from installation as its not needed 2024-10-16 06:42:24 +11:00
Peter Barker ced25ec0d7 Tools: remove use of python (as opposed to python3) 2024-10-15 11:11:38 +11:00
Ryan Friedman 9d6190b4fd Tools: Do not use system packages on openSUSE
* We only tested on apt, don't blindly change dev env stuff that's not
  tested in CI

Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
2024-10-01 16:00:56 +10:00
ARg 04ee66bec4 Tools/environment_install: print how to activate venv if not default 2024-09-23 19:24:33 +10:00
Ryan Friedman 86f51ee5a4 Tools: Remove bionic support for ubuntu setup
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-17 22:11:22 +10:00
Ryan Friedman d18a2b22f9 Tools: Give ardupilot venv access to system packages
* When possible, we can use the apt-installed python packages which are
  ABI stable
* Same for the other OS's that have VENV setup scripts

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 15:11:00 +10:00
Ryan Friedman d4a62f22e2 Tools: Use apt for pexpect
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2024-09-10 15:11:00 +10:00
Holden 045059580c Tools: Translate Linux Mint Wilma to Noble 2024-08-27 11:59:53 +10:00
Pierre Kancir 61bd5e9bae .github: add alpine to environement setup test 2024-08-15 22:33:42 +10:00
Pierre Kancir de85705941 Tools: add alpine initial prereqs script 2024-08-15 22:33:42 +10:00
Peter Barker eadc7c0ecc Tools: install_prereqs_ubuntu.sh: pin setuptools to avoid problems on Focal
focal:     return Version(version)
    focal:   File "/home/vagrant/.local/lib/python3.8/site-packages/packaging/version.py", line 202, in __init__
    focal:     raise InvalidVersion(f"Invalid version: '{version}'")
    focal: packaging.version.InvalidVersion: Invalid version: '1.0.3.linux-x86_64'
2024-07-29 15:27:23 +10:00
Peter Barker 07599ba570 Tools: environment_install: install Python packages one-at-a-time
helps to work out which packages are causing problems
2024-07-29 15:27:23 +10:00
Ben Butterworth 0a9a8d9178 Tools: install-prereqs-ubuntu.sh: fix script after setuptools==71.0.0 release
Use newest `packaging` to avoid packaging incompatibility with `setuptools>=71.0`

As https://github.com/pypa/setuptools/issues/4496#issuecomment-2240322375 mentions:
> setuptools>=71.0 does not work with packaging<24.0, but will not upgrade it if packaging is already installed

Also relevant: https://github.com/pypa/setuptools/issues/4496
2024-07-23 13:22:04 +10:00
Pierre Kancir 075c640404 Tools: fix archlinux install script
need setuptools on venv
2024-06-14 18:50:10 +10:00
Alex Burka dcf41cfe81 docker: fix docker detection in install-prereqs-ubuntu.sh
The standard "are we in docker" checks don't seem to work during a
build, so just use an environment variable.
2024-05-29 08:31:11 +09:00
Peter Barker 4320063bd6 Tools: install-prereqs-ubuntu.sh: add support for Ubuntu Noble (24.04) 2024-05-08 21:27:12 +10:00
yuri-rage 12c3391ac2 Tools: install Debian 12 prereqs 2024-03-12 22:06:57 +11:00
Andrew Piper c91a6fdba7 environment_install: fixup mac xcode install text 2024-02-28 19:17:00 +11:00
Jaaaky 9986fb9726 Tools: Add prerequisites install script for openSUSE Tumbleweed
Tried to make it as complete as compatible as possible with Ubuntu environment

Installing static libs for SITL_static
And gcc_arm-linux for Linux based boards
2024-02-17 08:56:49 +11:00
Richard Marko 04b46678a4 treewide: fix shebangs - /bin/bash -> /usr/bin/env bash
Most scripts/tools use non-portable `/bin/bash`, switch
to environment agnostic `/usr/bin/env bash`.
2024-02-13 11:36:23 +11:00
TsuyoshiKawamura e0971c7d1a Tools: make target directory before linking 2024-01-13 19:30:54 +11:00
Andrew Tridgell 8aaedccacc Tools: install ppp in ubuntu 2024-01-03 12:14:47 +11:00
Peter Barker 575314d31e Tools: mac: force install to avoid npm installation error
2023-12-11T23:04:39.8671350Z already exists. You may want to remove it:
2023-12-11T23:04:39.8679620Z   rm '/usr/local/lib/node_modules/npm/node_modules/@npmcli/agent/lib/agents.js'
2023-12-11T23:04:39.8682240Z
2023-12-11T23:04:39.8691710Z To force the link and overwrite all conflicting files:
2023-12-11T23:04:39.8700070Z   brew link --overwrite node@18
2023-12-11T23:04:39.8726220Z
2023-12-11T23:04:39.8736300Z To list all files that would be deleted:
2023-12-11T23:04:39.8744090Z   brew link --overwrite --dry-run node@18

... also remove hack to force update to succeed
2023-12-12 15:02:58 +11:00
bugobliterator 273e0795d0 Tools: ignore the error from brew update 2023-12-10 18:52:11 +11:00
Peter Barker 576dc9d05f Tools: clamp empy to version 3
API and syntax hanges make 4 problematic
2023-12-03 17:08:00 +11:00
Pierre Kancir aaa56699dd Tools: add junitparser to default install
skip-checks: true
2023-11-22 18:32:19 +11:00
Peter Barker f5d4122959 Tools: adjust install_prereqs_ubuntu.sh to handle Mantic 2023-10-16 09:12:42 +11:00
Pierre Kancir 9e2b14ad36 Tools: as per archlinux wiki don't do partial upgrade
https://wiki.archlinux.org/title/System_maintenance#Upgrading_the_system
2023-09-07 07:48:31 +10:00
Pierre Kancir 875f834e93 Tools: remove bionic fixed package as we move to py3 2023-08-23 17:15:56 +10:00
Pierre Kancir 69a42cafb3 Tools: update pip as part of install to prevent issues 2023-08-23 17:15:56 +10:00
Pierre Kancir e9bcf3b8df Tools: disable pip install progress bar on github action 2023-08-23 17:15:56 +10:00
Pierre Kancir 2b8a605fd2 Tools: use venv on Archlinux to fix install 2023-08-23 17:15:56 +10:00
Pierre Kancir be74f7b480 Tools: switch bionic to python3 to fix install 2023-08-23 17:15:56 +10:00
Ryan Friedman 08cd651bc3 Tools: Install the right serial module for Ubuntu lunar
* It's used in the firmware uploader.py script
* And a quick modification to reduce code duplication

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-17 08:36:55 +10:00
Ryan Friedman 2d68e1f40d Tools: Add missing GNU screen that's required for autotest
* Tools/autotest/pysim/util.py requires screen for GDB; it doens't support any other terminal types

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-06 07:18:46 +10:00
Peter Barker da2a3c4fca Tools: install valgrind as part of Ubuntu environment setup 2023-07-29 11:29:41 +10:00
Peter Barker 8b1a9cd6eb Tools: reinstantiate MacOSX brew update call
this was temporarily removed to allow MacOSX to pass; github's repository seemed to be corrupt somehow
2023-07-11 13:27:42 +10:00
Peter Barker 5c71e21498 Tools: remove brew update
Some sort of repository corruption on the github side; see https://github.com/orgs/Homebrew/discussions/4612
2023-07-04 17:27:15 +10:00
Pierre Kancir 50525206d5 Tools: apt install python-wxgtk on Lunar as pip install is hard to manage 2023-05-18 07:54:10 +10:00
Pierre Kancir 5e32a04c72 Tools: update setuptools and wheel before pip install pkgs
This allow to get precompiled package from pip depot instead of trying to compile them and failed without all dependencies
2023-05-18 07:54:10 +10:00
Pierre Kancir 372209649c Tools: move Debian Buster to python3 2023-05-18 07:54:10 +10:00
Pierre Kancir 39eb7072e1 Tools: install wheel as part of setup
Simplify wx installation
2023-05-18 07:54:10 +10:00
Peter Barker 30b87122e9 Tools: add script to make Bionic work with Python3 2023-05-09 11:09:25 +10:00
Peter Barker 12ccc15d90 Tools: install_prereqs_ubuntu: allow for Lunar install
notably we have to use a venv now-adays
2023-05-03 17:13:20 +10:00
Nicholas Kruzan 522f480b2d Tools: add jolnir on install script
Allow to install dev environment on distros that have 'jolnir' as release name
2023-03-20 19:25:01 -07:00
rbeall 743c64cb15 Tools: Update pyenv for new MacOS Clang13
https://bugs.python.org/issue45405

Version of pyenv 2.3.12 has patched most versions of python to properly compile with Mac clang 13.  This version is required to properly install python on new machine.
2023-02-08 08:54:13 +11:00
Rhys Mainwaring c7b969a8b7 Tools: Update ardupilot_gazebo install script
- Update prerequisites
- Update workspace and build order.
- Update GZ envs.

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
2023-01-10 08:33:05 +09:00
bugobliterator cf2d1ec290 Tools: fix CI error while building for macos 2023-01-08 11:48:33 +11:00