Cannot use lscsoft-glue with pyinstaller
@ryan.fisher As encouraged by @duncanmmacleod we want to retire the PyCBC clone of glue (pycbc-glue) and use this official version of glue in PyCBC. However, we currently have a couple of problems that are not allowing us to do this.
Here is the biggest problem:
https://git.ligo.org/ian-harry/glue/blob/master/glue/lal.py#L420
In this module lal is imported in a complicated way to allow fall-back to the lal utils class. However, this hides the import of lal from pyinstaller, and it doesn't seem possible to use imp.load_module
within a pyinstaller bundle anyway. As PyCBC uses these bundles for OSG running (for example) we need this to work.
However, standard imports (e.g. import lal
) are a problem here as the module is called lal, so import lal
imports glue.lal
and not actual lal! The only solution I can see here is to simply remove this code completely (it is listed as deprecated).