def METHOD_NAME(self):
    check_call([python, 'setup.py', 'bdist', "--dist-dir=bdist"],
               cwd=os.path.join(cwd, 'test_distutils_packaged'))
    dist_path = os.path.join(cwd, 'test_distutils_packaged', 'bdist')
    tgz = [f for f in os.listdir(dist_path) if f.endswith(".tar.gz")][0]
    check_call(['tar', 'xzf', tgz], cwd=dist_path)
    demo_so = find_so(r"a.*\.so", dist_path)
    self.assertIsNotNone(demo_so)
    shutil.rmtree(dist_path)