diff options
-rw-r--r-- | build_scripts/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 3f8ebd4d7..edc84f4c4 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -45,6 +45,7 @@ import re import sys import importlib from pathlib import Path +from shutil import which, copytree from textwrap import dedent import time from .config import config @@ -457,7 +458,9 @@ class PysideBuild(_build, DistUtilsCommandMixin, BuildInfoCollectorMixin): _src = Path(_path / _package_name) _dst = Path(_wheel_path / _package_name) try: - Path(_path / _package_name).rename(_wheel_path / _package_name) + # This should be copied because the package directory + # is used when using the 'install' setup.py instruction. + copytree(_src, _dst) except Exception as e: log.warn(f'***** problem renaming "{self.st_build_dir}"') log.warn(f'ignored error: {type(e).__name__}: {e}') |