Search code examples
pythonpipgrpc-python

Using GRPC python without internet access and pip install for custom Linux distro


I need to run a GRPC server on a custom Linux distro, which has no access to internet or python pip. Can anyone please provide some guidance how I can generate the cygrpc.cp37-win_amd64 file specific to the platform**[32bit custom Linux with Python 3.7]**? I have noted that if I copy the grpc folder, the only error that comes up is that GRPC fails to import cygrpc


Solution

  • The solution I found for this problem is to use a Docker container with 32bit Linux(for e.g. RHEL) image and install gRPC in this container. After installation the platform specific cygrpc.cp.. file is generated inside _cython folder in grpc folder. Then it can be used wherever you need it.