# source: pypa/setuptools, copyright their, license: MIT
import ast
m = ast.parse("""
import setuptools
if __name__ == '__main__':
here and os.chdir(here)
dist = setuptools.setup(**setup_params)
""")
import peval
from peval.highlevelapi import _run_components
import astor
r, v = _run_components(m, {})
print(astor.to_source(r, indent_with='\t',), v)
results in
import setuptools
if __name__ == '__main__':
here and os.chdir(here)
and the dict is {}
results in
and the dict is
{}