Closed prjemian closed 1 year ago
conda install -c conda-forge poetry
(bluesky_2023_2) prjemian@zap:~$ poetry add haven
Poetry could not find a pyproject.toml file in /home/prjemian or its parents
skip poetry
and pip install from working directory:
mkdir -p ~/Documents/projects/spc-group
cd ~/Documents/projects/spc-group
git clone https://github.com/spc-group/haven
cd haven
conda install -c conda-forge mergedeep xraydb
pip install -e .
from haven import registry
registry.register(EpicsSignal)
registry.register(EpicsMotor)
registry.register(scaler)
registry.register(fourc)
registry.register(shutter)
Can add haven
to the environment spec with a requirement similar to this one: https://github.com/BCDA-APS/bluesky_training/blob/7620c1d95b075bb74209e26f6008547aa57c384d/bluesky/environments/environment_2023_2.yml#L118
These additions to the yaml file are needed to use the haven
instrument registry as-is:
- mergedeep
- xraydb
- pip:
- https://github.com/spc-group/haven/archive/main.zip
haven
to new instrument environmentsI published Haven to the PyPI: https://pypi.org/project/haven-spc/
Fair warning, the [gui] extras does not currently resolve, there's a dependency hell situation with PyQT apparently. It should work without that extra though.
Great!
On Sat, Jul 1, 2023, 1:26 PM Mark Wolfman @.***> wrote:
I published Haven to the PyPI: https://pypi.org/project/haven-spc/
Fair warning, the [gui] extras does not currently resolve, there's a dependency hell situation with PyQT apparently. It should work without that extra though.
— Reply to this email directly, view it on GitHub https://github.com/BCDA-APS/bluesky_training/issues/116#issuecomment-1616036095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARMUMCEUVQPYCTGJCHJA4TXOBTTVANCNFSM6AAAAAAXM56Q3I . You are receiving this because you modified the open/close state.Message ID: @.***>
https://github.com/spc-group/haven/
pip install poetry use poetry to install haven