Add setup and install scripts for the GUI #17
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For ease of use, we'd prefer not to have people run a bunch of terminal commands manually. In contrast to the main microscope software, we'd also like to keep this tool isolated in a virtualenv to reduce the chance that analysis tools can break the microscope software.
This commit adds some setup scripts that can help do this:
setup_ubuntu_22_04.shthere's a bunch of extra system dependencies we need on ubuntu (mostly for QT); this installs them automatically. I chose ubuntu 22 since it's the same OS the microscope software installation script targets.dev/ensure_uv.sha wrapper around the installer for uv, which we use to manage the virtualenvs, python installation, and python dependenciesrun_guiensures that uv is installed by calling intodev/ensure_uv.shand then runs the GUI command. This is also double-clickable on mac (and presumably linux, though I don't have a non-containerized ubuntu 22.04 installation to test on)Tested by:
./setup_ubuntu_22_04.sh./run_guirun_guion mac, see I get the stitching gui and can stitch some images