Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2024-08-31 14:23:06 +0200
committerChristian Tismer <tismer@stackless.com>2024-09-03 09:53:32 +0000
commit98ff18f29d0ef56e78bb2248ebded4692d938d2e (patch)
tree4cee6479673aa6b104b04b1aa70b696959bdf342 /build_scripts/main.py
parentec57dc491b877e283bc2d99b0a69e57b8408b1ba (diff)
build scripts: Always record the latest build, whether tested or not
Task-number: PYSIDE-2701 Change-Id: I7c02c5e67ad847a86733b5086a3dbd0cf81b91cf Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
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