def from_archive(archive_filename, py_interpreter=sys.executable):
with _extract_to_tempdir(archive_filename) as root_dir:<EOL><INDENT>data = _setup_py_run_from_dir(root_dir, py_interpreter)<EOL><DEDENT>return data<EOL>
extract metadata from a given sdist archive file

    :param archive_filename: a sdist archive file
    :param py_interpreter: The full path to the used python interpreter

    :returns: a json blob with metadata