ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Allow using virtual environment on Ubuntu Jammy when running install-prereqs-ubuntu.sh

Open Ryanf55 opened this issue 1 year ago • 5 comments

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

discord mavproxy discussion

Ryanf55 avatar Feb 04 '24 03:02 Ryanf55

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.

Ryanf55 avatar Feb 06 '24 00:02 Ryanf55

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.

P81000 avatar Feb 07 '24 16:02 P81000

we are already supporting venv in Lunar, so it won't be much work to update to make it works for jammy

khancyr avatar Feb 07 '24 16:02 khancyr

Prototype branch: https://github.com/Ryanf55/ardupilot/tree/venv-option-on-jammy

Ryanf55 avatar Feb 07 '24 18:02 Ryanf55