diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-04-22 12:38:41 +0200 |
---|---|---|
committer | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2022-06-01 21:11:33 +0200 |
commit | a91e4a009d2ee9839ac84ce3d21a438067b90c1a (patch) | |
tree | 8310acde43e44ab80d6f399a778585df5e10d0ee | |
parent | 447fed361ae0308903efe24aa7e1495f6e684622 (diff) |
build: copy instead of move the package directory6.3.0
this had the effect that the 'setup.py install'
command was failing to copy the built modules
into the Python's site-packages.
Change-Id: Ifc5a94a43d68783a71efe29baa73f068a4c418a3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 16c4e9d5d5a094b007bae1e1e496fc5ec35226fe)
Reviewed-by: Christian Tismer <tismer@stackless.com>
-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}') |