labscript-suite / labscript-utils

Shared modules used by the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦. Includes a graphical exception handler, debug tools, configuration management, cross platform filepath conversions, unit conversions and custom GUI widgets.
http://labscriptsuite.org
Other
2 stars 45 forks source link

Prevent starting a zlock server when importing `h5_lock` on RTD. #83

Closed dihm closed 2 years ago

dihm commented 2 years ago

Current build fails certain submodules due to h5_lock shenanigans, same as experienced in other suite components described in labscript-suite/labscript-suite#65.

Unlike other components, can't just mock, so adding an environment variable check to prevent running connect_to_zlock_server when importing labscript_utils.h5_lock.

dihm commented 2 years ago

OK, so that worked.

Of course, the irony is not lost on me that if I had just done this in the first place as @chrisjbillington had suggested, I wouldn't have had to add all the extra mocks to the other components. Oh well.