def _get_cooked_ast(filename):
        """
        Get AST of the setup file and also transform it for fake setuptools
        and stub setup calls.
        """
        # with codecs.open(filename, mode="r", encoding="UTF-8") as ins:
        #    s = ins.read()
        with open(filename, "rb") as ins:
            tree = ast.parse(
                ins.read(),
                filename=filename,
                mode='exec'
            )
        ArchiveFileInstaller.SetupTransformer().visit(tree)
        return tree

        Get AST of the setup file and also transform it for fake setuptools
        and stub setup calls.
        
bin/pip.py