GAE Managed VMs: Can C-Based Python Libraries Be Used With Standard Runtime?

I am creating a background module for my application in Python 2.7, but it needs to use external C based libraries like OpenCV. While GAE only supports pure Python libraries "directly", I understand that using a managed VM removes this limitation. What I don't quite understand after reading the documentation is whether I need to use a custom runtime or a standard Python runtime (for which there is a ready-made Dockerfile and built-in API support for Datastore, Task Queue, etc.).

Thanks in advance for your understanding!

+3


source to share


1 answer


The standard runtime is fine, you just need to add additional dependencies to the generated Dockerfile. The tutorial in the docs (specifically Step 6) shows an example of how to create a python application using a C extension.



+2


source







All Articles