I have a fast API project i am trying to test cython on to speed up some cpu intensive endpoints. At the moment i am just trying to compile the .py files, i am not expecting miracles, just want a baseline to start from. I am building in a docker container.
The build proceeds fine, no errors, and if i shell in to the container its got all the .so files from the build. But when the app runs and i print out cython.compiled it always says "False".
What could i be doing wrong? What can i look at to try and diagnose this issue.
Here is the build.py i am running directly after i copy the files into the container.
https://pastebin.com/wgBNsp3FAnd i am running it inside the container during the container build with:
python build.py build_ext --inplace
The code all runs fine, just not compiled.