happycube / ld-decode

Software defined LaserDisc decoder
GNU General Public License v3.0
296 stars 76 forks source link

readd some stuff that got removed in a merge and some build fixes #831

Closed oyvindln closed 1 year ago

oyvindln commented 1 year ago

One of the last prs seems to have removed the code closing the loader properly on exit and supplying a reference to raw data to demodblock so readding that

Move the code in ld-decode to a main.py and make the original a shim calling it to make it easier to make a single file call any of ld-decode/vhs-decode etc and also modern python project seems to generally use some config file defiined entry point for callable files in a src directory so that would make that easier too.

Change cmake file to skip looking for qt gui bits if they are not used so one can build the cli tools without that available and only supply --prefix to setup.py install if it's manually set. If --prefix is supplied even if it's the default /usr/local one seems to make the installed files not find the modules by default without adding some stuff to pythonpath.