code: def findRequirements():
    
    requirementsPath = os.path.join(REPO_DIR, "requirements.txt")
    requirements = parse_file(requirementsPath)
  
    # User has a pre-release version of numenta packages installed, which is only
    # possible if the user installed and built the packages from source and
    # it is up to the user to decide when to update these packages.  We'll
    # quietly remove the entries in requirements.txt so as to not conflate the
    # two.
    if nupicPrereleaseInstalled():
      requirements = [req for req in requirements if "nupic" not in req]
  
    if htmresearchCorePrereleaseInstalled():
      requirements = [req for req in requirements if "htmresearch-core" not in req]
  
    return requirements
docs: Read the requirements.txt file and parse into requirements for setup's
    install_requirements option.