OS dependencies for app running on Google App Engine Flex (pdftotext library)

Viewed 110

I have a Python app deployed on Google App Engine.

My application takes in a pdf file path, retrieves and downloads the file, then converts the file to text using the python library pdftotext before the data is further processed.

pdftotext requires additional OS dependencies that I can't just add to my requirements.txt:

sudo apt-get install build-essential libpoppler-cpp-dev pkg-config python-dev

Is it possible to have OS dependencies for applications deployed on App Engine (serverless)? If so, how can I add those dependencies?

1 Answers

If your application requires additional operating-system level dependencies, you will need to use a custom runtime to install the appropriate packages.

Related