bluesky / hklpy

Diffractometer computation library with ophyd pseudopositioner support
https://blueskyproject.io/hklpy
BSD 3-Clause "New" or "Revised" License
3 stars 11 forks source link

conda environment update #227

Closed prjemian closed 2 years ago

prjemian commented 2 years ago
prjemian commented 2 years ago

Order of channels is very important. When defaults is placed before conda-forge, then a gsl library is installed (2.7) which has mismatch with some other package expecting a different version (2.5).

prjemian commented 2 years ago

This is a test install procedure that executes in about a minute:

micromamba create -y -n hklpy -f environment.yml

eval "$(micromamba shell hook --shell=bash)"
micromamba activate hklpy
pip install -e . --no-deps
python -c "import hkl; fourc=hkl.SimulatedE4CV('', name='fourc'); fourc.wh()"

after testing, switch back to prior environment:

conda deactivate
prjemian commented 2 years ago

Important to note that the pygobject package is the requirement that pulls in the proper gobject-inspection library needed to connect the libhkl library with the Python code here. That explains the pivot from gobject-inspection to pygobject in the environment files and tests.