Commit 9e96012a authored by André Anjos's avatar André Anjos 💬

[describe] Remove package listing (slow and incomplete)

parent 91996aac
......@@ -26,18 +26,13 @@
###############################################################################
import os
import sys
import pip
import platform
import collections
import simplejson
def main():
packages = dict(Python='.'.join(str(k) for k in sys.version_info[:3]))
for dist in pip.get_installed_distributions():
packages[dist.project_name] = dist.version
# resolve package name
name = 'environment'
......@@ -47,19 +42,8 @@ def main():
version = '1'
if len(sys.argv) > 2: version = sys.argv[2]
# checks for OpenCV bindings
try:
import cv2
packages['OpenCV'] = 'available'
except:
pass
# order packages
packages=collections.OrderedDict([(k,packages[k]) for k in sorted(packages)])
retval = collections.OrderedDict()
retval['name'] = name
retval['version'] = version
retval['os'] = platform.uname()
retval['packages'] = packages
print(simplejson.dumps(retval, indent=2))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment