ardupilot
ardupilot copied to clipboard
Allow using virtual environment on Ubuntu Jammy when running install-prereqs-ubuntu.sh
Feature request
Is your feature request related to a problem? Please describe.
ArduPilot python packages that are installed in user-space can interfere with other toolchains. Python developers recommend virtual environments whenever possible. I find myself having to wipe user python packages because they have version incompatibilities, and other development toolchains assume python packages available outside a virtual environment are all managed properly by the distro.
Describe the solution you'd like
Allow install-prereqs-ubuntu.sh
to have the option to install everything in a virtual environment on Ubuntu Jammy.
Describe alternatives you've considered
Manually installing packages in a virtual environment.
Platform [ ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine
Additional context
Dev call said this would be accepted if it did not impact the existing flow. An additional param, with a wiki change, would be accepted.
I'm using a Docker container to build the code using an Ubuntu image. I was able to run install-prereqs
inside the container and everything worked well. Can you provide more context? I'm a new ardupilot developer.
we are already supporting venv in Lunar, so it won't be much work to update to make it works for jammy
Prototype branch: https://github.com/Ryanf55/ardupilot/tree/venv-option-on-jammy