wpilibsuite / GradleRIO

The official gradle plugin for the FIRST Robotics Competition
MIT License
262 stars 69 forks source link

Remove RobotPy when deploying Java on a RoboRIO I #712

Open virtuald opened 9 months ago

virtuald commented 9 months ago

Users reporting disk space issues.

RobotPy's uninstall procedure is: https://github.com/robotpy/robotpy-installer/blob/266a07cf51d34902f4bda4e7e68bbb8f0a40ca37/robotpy_installer/installer.py#L353

However, we probably should also remove all the pip packages, and the users code at /home/lvuser/py. The quickest way to get rid of most of the installed stuff is by removing /usr/local/lib/python312... but there are some things in /usr/local/lib/*.so also (if opencv is installed). Will have to look at a good way to do it, using pip would be really slow.

virtuald commented 8 months ago

See https://github.com/robotpy/robotpy-installer/pull/93 for how robotpy-installer does it. pip isn't that slow for uninstallation.