bluesky / hklpy

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

pip install needs requirements.txt #226

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

Yikes! The pip install did not install the additional requirements.

python3 -m venv try-hklpy
source try-hklpy/bin/activate
python3 -m pip install hklpy pygobject

Originally posted by @prjemian in https://github.com/bluesky/hklpy/issues/212#issuecomment-1160875420

prjemian commented 2 years ago

Can't install libhkl via pip:

ERROR: Could not find a version that satisfies the requirement hkl (from versions: none)
ERROR: No matching distribution found for hkl
prjemian commented 2 years ago

So, starting with Python 3.9 and libhkl already installed:

conda create -y -n hklpy python=3.9 hkl -c conda-forge
conda activate hklpy

Then install by pip

cd hklpy
pip install -r requirements.txt
pip install -e . --no-deps

and test by creating a simulated 4-circle diffractometer and showing its defaults:

python -c "import hkl; fourc=hkl.SimulatedE4CV('', name='fourc'); fourc.wh()"
prjemian commented 2 years ago

Let's push a new 1.0.3 release to test these requirements.