diff options
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index 4675cc68fa..92468b2254 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py | |||
@@ -10,7 +10,7 @@ import codecs | |||
10 | import collections | 10 | import collections |
11 | import setuptools.command.build_py | 11 | import setuptools.command.build_py |
12 | import email | 12 | import email |
13 | import imp | 13 | import importlib |
14 | import glob | 14 | import glob |
15 | import itertools | 15 | import itertools |
16 | import logging | 16 | import logging |
@@ -561,7 +561,6 @@ class PythonRecipeHandler(RecipeHandler): | |||
561 | return deps | 561 | return deps |
562 | 562 | ||
563 | def parse_pkgdata_for_python_packages(self): | 563 | def parse_pkgdata_for_python_packages(self): |
564 | suffixes = [t[0] for t in imp.get_suffixes()] | ||
565 | pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR') | 564 | pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR') |
566 | 565 | ||
567 | ldata = tinfoil.config_data.createCopy() | 566 | ldata = tinfoil.config_data.createCopy() |
@@ -585,7 +584,7 @@ class PythonRecipeHandler(RecipeHandler): | |||
585 | continue | 584 | continue |
586 | 585 | ||
587 | for fn in files_info: | 586 | for fn in files_info: |
588 | for suffix in suffixes: | 587 | for suffix in importlib.machinery.all_suffixes(): |
589 | if fn.endswith(suffix): | 588 | if fn.endswith(suffix): |
590 | break | 589 | break |
591 | else: | 590 | else: |