MartinSahlen / cloud-functions-python

Get some python in google cloud functions
203 stars 29 forks source link

Add hooks to upstream pyinstaller #56

Open bowen4 opened 6 years ago

bowen4 commented 6 years ago

I came upon this repository while attempting to package a grpc and google cloud firestore project using pyinstaller, as upstream pyinstaller does not have the hooks necessary to package these. Could I add the hooks under cloudfn/hooks to upstream pyinstaller? I am new to github so I apologise if this issue is not the right place for this.

randolfo75 commented 5 years ago

I included the line: datas += copy_metadata('google-cloud-firestore')

in file hook-google.cloud.py in .\Lib\site-packages\PyInstaller\hooks

It solved for me.

MartinSahlen commented 5 years ago

I would recommend looking at https://cloud.google.com/functions/docs/writing/#functions-writing-helloworld-http-python and not use this library (I am the author of this library).