def make_trivial_sdist(dist_path, setup_py):
setup_py_file = tarfile.TarInfo(name='<STR_LIT>')<EOL>try:<EOL><INDENT>MemFile = StringIO.BytesIO<EOL><DEDENT>except AttributeError:<EOL><INDENT>MemFile = StringIO.StringIO<EOL><DEDENT>setup_py_bytes = MemFile(setup_py.encode('<STR_LIT:utf-8>'))<EOL>setup_py_file.size = len(setup_py_bytes.getvalue())<EOL>dist = tarfile.open(dist_path, '<STR_LIT>')<EOL>try:<EOL><INDENT>dist.addfile(setup_py_file, fileobj=setup_py_bytes)<EOL><DEDENT>finally:<EOL><INDENT>dist.close()<EOL><DEDENT>
Create a simple sdist tarball at dist_path, containing just a
    setup.py, the contents of which are provided by the setup_py string.