Fixes for pyinstaller

This commit is contained in:
Petteri Aimonen
2013-12-03 20:10:48 +02:00
parent b1cb035373
commit 435ccbfdf7

View File

@@ -6,7 +6,14 @@ nanopb_version = "nanopb-0.2.5-dev"
import sys import sys
try: try:
# Add some dummy imports to keep packaging tools happy.
import google, distutils.util # bbfreeze seems to need these 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 import google.protobuf.text_format as text_format
except: except:
sys.stderr.write(''' sys.stderr.write('''