Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ophyd fork is not installed with packaged instrbuilder via pip #21

Open
lucask07 opened this issue Jan 17, 2019 · 1 comment
Open

Ophyd fork is not installed with packaged instrbuilder via pip #21

lucask07 opened this issue Jan 17, 2019 · 1 comment

Comments

@lucask07
Copy link
Owner

lucask07 commented Jan 17, 2019

The instrbuilder requirements.txt file lists:

git+https://github.com/lucask07/ophyd@master#egg=ophyd

But this doesn't work and the master pip version of ophyd is installed.

After installation of instrbuilder via pip need to run the following pip commands to get the ophyd fork:

python -m pip uninstall ophyd
python -m pip install git+https://github.com/lucask07/ophyd@master#egg=ophyd

To test if the correct ophyd fork that supports Bluesky and Instrbuilder integration:

from ophyd.ee_instruments import generate_ophyd_obj

The import will only work if the ophyd fork is installed.

@lucask07
Copy link
Owner Author

I believe this is not possible with a PyPi package:
pypa/pip#4187 (comment)

Will:

  1. remove ophyd from requirements.txt, which eliminates the need for the uninstall step
  2. add try/except clauses to ophyd imports which print the instructions to install the ophyd fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant