Lots of help from @stefanv and @Carreau finishing up the py3 conversion.
Note, now if you want to start the queue, you will have to use
import monitor_queue from procbuild.server
monitor_queue()
rather than expecting it to work on importing procbuild. Honestly, I think that's cleaner anyway, since otherwise there will be no way to execute submodules with __main__.pys because it will run the __init__.py and the loop through the queue will never exit. I still need to figure out what exactly makes it so that the queue exits in one case but not the other, but for now this works.
Also, the way the queue is being handled we couldn't figure out how build_papers.py ever worked, but that's more for debugging than the most common use case anyway.
But in summary: it looks like we finally have a fully functional version of this server on python3!
Lots of help from @stefanv and @Carreau finishing up the py3 conversion.
Note, now if you want to start the queue, you will have to use
rather than expecting it to work on importing
procbuild
. Honestly, I think that's cleaner anyway, since otherwise there will be no way to execute submodules with__main__.py
s because it will run the__init__.py
and the loop through the queue will never exit. I still need to figure out what exactly makes it so that the queue exits in one case but not the other, but for now this works.Also, the way the queue is being handled we couldn't figure out how
build_papers.py
ever worked, but that's more for debugging than the most common use case anyway.But in summary: it looks like we finally have a fully functional version of this server on python3!