def check_dependencies():
  print >> sys.stderr, "Checking software versions..."
  pox_path = os.path.join(os.path.dirname(__file__), "..", "pox")
  if not check_sw_version(pox_path, "remotes/origin/debugger"):
    print >> sys.stderr, ('''Warning: POX version not up-to-date. You should '''
                          '''probably run:\n $ (cd pox; git pull) ''')

  hassel_path = os.path.join(os.path.dirname(__file__), "hassel")
  if not os.path.exists(os.path.join(hassel_path, "LICENSE.txt")):
    print >> sys.stderr, "Warning: Hassel submodule not loaded."
  elif not check_sw_version(hassel_path, "remotes/origin/HEAD"):
    print >> sys.stderr, ('''Warning: Hassel version not up-to-date. You should '''
                          '''probably run:\n $ git submodule update ''')

# We store the last date we checked software versions in sts/last-version-check.
# The format of the file is: date.today().toordinal()
Double check whether POX and Hassel are at the latest software versions.
dataset/ETHPy150Open ucb-sts/sts/sts/__init__.py/check_dependencies