aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/main.py')
-rw-r--r--build_scripts/main.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index b37af30cb..3b68a6896 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -408,18 +408,18 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin):
for ext in config.get_buildable_extensions():
self.build_extension(ext)
- if OPTION["BUILDTESTS"]:
- # we record the latest successful build and note the
- # build directory for supporting the tests.
- timestamp = time.strftime('%Y-%m-%d_%H%M%S')
- build_history = setup_script_dir / 'build_history'
- unique_dir = build_history / timestamp
- unique_dir.mkdir(parents=True)
- fpath = unique_dir / 'build_dir.txt'
- with open(fpath, 'w') as f:
- print(self.build_dir, file=f)
- print(self.build_classifiers, file=f)
- log.info(f"Created {build_history}")
+ # We always record the history, whether tests are built or not.
+ # Record the latest successful build and note the
+ # build directory for supporting the tests or other tools.
+ timestamp = time.strftime('%Y-%m-%d_%H%M%S')
+ build_history = setup_script_dir / 'build_history'
+ unique_dir = build_history / timestamp
+ unique_dir.mkdir(parents=True)
+ fpath = unique_dir / 'build_dir.txt'
+ with open(fpath, 'w') as f:
+ print(self.build_dir, file=f)
+ print(self.build_classifiers, file=f)
+ log.info(f"Created {build_history}")
if not OPTION["SKIP_PACKAGING"]:
# Build patchelf if needed