def get_package_list_from_file(path):
    """
    Create a list of packages to install from a provided .txt file

    Parameters
    __________
        path: Filepath to the text file (.txt) containing the list of packages to install.

    Returns
    ______
        List of filepaths to packages to install.

    Notes
    _____
        .txt file should provide the full filepath to packages to install and be newline (\n) delimited.

    """
    # Verify we have a text file
    if not path.endswith('.txt'):
        raise RuntimeError("Package List must be a newline(\n) delimited text file.")

    # read lines of the file and strip whitespace
    with open(path, 'r') as f:
        pkg_list = [line.rstrip().rstrip("/") for line in f]

    # Verify that we are not given an empty list
    if not pkg_list:
        raise RuntimeError("No packages found to be installed. "
                           "Please provide a file with a minimum of 1 package location.")

    return pkg_list