def testPythonSetupD(self):
        try:
            __import__('setuptools')
        except __HOLE__:
            raise testhelp.SkipTestException('Missing python-setuptools package')
        recipestr = r"""
class Test(PackageRecipe):
    name = 'test'
    version = '0'
    clearBuildReqs()
    
    def setup(r):
        r.Create('blah/setupfoo.py', contents='\n'.join((
            '#import disttools',
            'file("%(destdir)s/disttools", "w").close()',
            '')))
        r.PythonSetup(setupName='setupfoo.py', dir='blah', action='whatever',
                      rootDir='')
"""
        # missing buildreq, but test that it runs anyway
        trv = self.build(recipestr, "Test")
        self.verifyPackageFileList(trv, ['/disttools'])
dataset/ETHPy150Open sassoftware/conary/conary_test/cvctest/buildtest/buildtest.py/PythonSetupTest.testPythonSetupD