def METHOD_NAME(self):
    project_dir, dist = self.create_dist(py_modules=['boiledeggs'])
    os.chdir(project_dir)
    self.write_file('boiledeggs.py', 'import antigravity')
    cmd = build_py(dist)
    cmd.compile = 0
    cmd.optimize = 1
    cmd.build_lib = 'here'
    cmd.finalize_options()
    cmd.run()
    found = os.listdir(cmd.build_lib)
    self.assertEqual(sorted(found), ['__pycache__', 'boiledeggs.py'])
    found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
    expect = 'boiledeggs.{}.opt-1.pyc'.format(sys.implementation.cache_tag)
    self.assertEqual(sorted(found), [expect])