AllenNeuralDynamics / exa-spim-control

Acquisition control for the exaSPIM microscope system
MIT License
2 stars 1 forks source link

pip installable package #1

Closed adamkglaser closed 1 year ago

adamkglaser commented 2 years ago

Convert to pip installable package for easier sharing between projects and team members

Poofjunior commented 2 years ago

Progress in the dev/package branch.

The goal is to get things to the point where you should be able to: (1) download/install all vendor libraries first and then (2) invoke pip install -e ., and pip should install the rest.

On top of that, we can have our installer add a script to the path which will basically just launch your main.py code which we can invoke with something like exaspim from a prompt.

Temporary Stuff

For now, we can make our mesospim package a dependency so that we can get the base classes from there with:

from mesospim.spim_base import Spim
from mesospim.config_base import TomlConfig

This sidesteps needing to make another package for just those base classes for now, but it also lets us avoid copy-pasting files like it's the wild west 🤠

Poofjunior commented 2 years ago

done in dev/package branch.