refactor version info so pyinstaller will work; add build mac and ubuntu standalone executables

This commit is contained in:
Mike Kinney
2022-01-05 13:22:37 -08:00
parent 53d626aa72
commit 3f76c1efb0
6 changed files with 58 additions and 4 deletions

View File

@@ -195,7 +195,8 @@ def support_info():
print(' Machine: {0}'.format(platform.uname().machine))
print(' Encoding (stdin): {0}'.format(sys.stdin.encoding))
print(' Encoding (stdout): {0}'.format(sys.stdout.encoding))
print(' meshtastic: v{0}'.format(pkg_resources.require('meshtastic')[0].version))
the_version = pkg_resources.get_distribution("meshtastic").version
print(' meshtastic: v{0}'.format(the_version))
print(' Executable: {0}'.format(sys.argv[0]))
print(' Python: {0} {1} {2}'.format(platform.python_version(),
platform.python_implementation(), platform.python_compiler()))