def _prepare_setuptools(self):
        if hasattr(TestDist, '_setuptools_ready'):
            return
        try:
            import setuptools
        except __HOLE__:
            py.test.skip("setuptools not found")
        if os.path.exists(os.path.join(self.rootdir, 'setup.py')):
            self.run(['setup.py', 'egg_info'], cwd=self.rootdir)
        TestDist._setuptools_ready = True
dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi1/test_zdist.py/TestDist._prepare_setuptools