diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-09-30 17:25:36 +0200 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-10-27 16:22:34 +0200 |
| commit | 234349d124ccfa399921e2b9fc09addcff0b0a94 (patch) | |
| tree | 21580e62a1518ae4ff5769a75da51314d0e1a78d /examples/declarative/referenceexamples/adding/adding.pyproject | |
| parent | 6b0a8254f589495bf153773271669737408a53af (diff) | |
setup.py: Move all build dirs into a common 'build' subdirectory
When building the project using setup.py, it would pollute
the source directory with a lot of virtual environment build
directories
Move all of those into a common 'build' subdirectory.
This eases cleanup of all build directories because they
can all be removed with a single rm command.
It also places all the various stages of build -> install -> package
folders into a common subdirectory so it's easier to find and navigate
between them.
Example of the new build directory structure
build/py3venv/py3.7-qt6.2.0-64bit-release/build/shiboken6
build/py3venv/py3.7-qt6.2.0-64bit-release/build/pyside6
build/py3venv/py3.7-qt6.2.0-64bit-release/install/bin/shiboken6
build/py3venv/py3.7-qt6.2.0-64bit-release/package-lib.macosx-10.14-x86_64-3.7
The last 'package-xyz' subfolder will have its name shortened if the
SHORTER_PATHS option is enabled, to avoid path limits on Windows.
If no virtualenv is used, change the dir prefix from the previous 'pyside' one
to 'qfp' because it's shorter and it's also less confusing that there are both
shiboken and pyside subfolders inside 'qfp'.
Move the code that always removed the ./build directory on each
setup.py invocation into prepare_packages() instead.
This way it only removes the files from the 'package' subfolder which
is the common packaging location between all the sub-projects.
This removal is needed to ensure shiboken files don't end up packaged
in the PySide6 wheel.
TODO: One more improvement would be to move the bdist_dir and bdist_wheel
dirs into the same common subdirectory. This is a bit more complicated
to do because it requires computation of the common subfolder and its
dependencies in finalize_options of both the 'build' and 'bdist'
stages.
[ChangeLog][setup.py] Build directories are now created inside the
root ./build directory, rather than directly under the root of the
project.
Pick-to: 6.2
Change-Id: Ie8c0dc27e5067acc9809b9cefaef6be66c76f9dd
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/declarative/referenceexamples/adding/adding.pyproject')
0 files changed, 0 insertions, 0 deletions
