summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create_buildsys_python.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
-rw-r--r--scripts/lib/recipetool/create_buildsys_python.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py
index ac9bc9237c..adfa377956 100644
--- a/scripts/lib/recipetool/create_buildsys_python.py
+++ b/scripts/lib/recipetool/create_buildsys_python.py
@@ -154,8 +154,13 @@ class PythonRecipeHandler(RecipeHandler):
154 if 'buildsystem' in handled: 154 if 'buildsystem' in handled:
155 return False 155 return False
156 156
157 if not RecipeHandler.checkfiles(srctree, ['setup.py']): 157 # Check for non-zero size setup.py files
158 return 158 setupfiles = RecipeHandler.checkfiles(srctree, ['setup.py'])
159 for fn in setupfiles:
160 if os.path.getsize(fn):
161 break
162 else:
163 return False
159 164
160 # setup.py is always parsed to get at certain required information, such as 165 # setup.py is always parsed to get at certain required information, such as
161 # distutils vs setuptools 166 # distutils vs setuptools