Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ryanf55 opened this issue Feb 4, 2024 · 4 comments

Comments

@Ryanf55
Copy link
Collaborator

Ryanf55 commented Feb 4, 2024

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
Copy link
Collaborator Author

Ryanf55 commented Feb 6, 2024

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.

@P81000
Copy link

P81000 commented Feb 7, 2024

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.

@khancyr
Copy link
Contributor

khancyr commented Feb 7, 2024

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

@Ryanf55
Copy link
Collaborator Author

Ryanf55 commented Feb 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants