diff options
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index 0b6b042ed1..1a15011687 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py | |||
@@ -8,7 +8,7 @@ | |||
8 | import ast | 8 | import ast |
9 | import codecs | 9 | import codecs |
10 | import collections | 10 | import collections |
11 | import distutils.command.build_py | 11 | import setuptools.command.build_py |
12 | import email | 12 | import email |
13 | import imp | 13 | import imp |
14 | import glob | 14 | import glob |
@@ -459,9 +459,13 @@ class PythonRecipeHandler(RecipeHandler): | |||
459 | else: | 459 | else: |
460 | package_dir = {} | 460 | package_dir = {} |
461 | 461 | ||
462 | class PackageDir(distutils.command.build_py.build_py): | 462 | dist = setuptools.Distribution() |
463 | |||
464 | class PackageDir(setuptools.command.build_py.build_py): | ||
463 | def __init__(self, package_dir): | 465 | def __init__(self, package_dir): |
464 | self.package_dir = package_dir | 466 | self.package_dir = package_dir |
467 | self.dist = dist | ||
468 | super().__init__(self.dist) | ||
465 | 469 | ||
466 | pd = PackageDir(package_dir) | 470 | pd = PackageDir(package_dir) |
467 | to_scan = [] | 471 | to_scan = [] |