From 435ccbfdf7e48cfd809c41049d9edf4d6c267566 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Tue, 3 Dec 2013 20:10:48 +0200 Subject: Fixes for pyinstaller --- generator/nanopb_generator.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'generator') diff --git a/generator/nanopb_generator.py b/generator/nanopb_generator.py index ab6f3cb5..6ccb96f9 100755 --- a/generator/nanopb_generator.py +++ b/generator/nanopb_generator.py @@ -6,7 +6,14 @@ nanopb_version = "nanopb-0.2.5-dev" import sys try: + # Add some dummy imports to keep packaging tools happy. import google, distutils.util # bbfreeze seems to need these + import pkg_resources # pyinstaller / protobuf 2.5 seem to need these +except: + # Don't care, we will error out later if it is actually important. + pass + +try: import google.protobuf.text_format as text_format except: sys.stderr.write(''' -- cgit 1.2.3-korg