View Issue Details

IDProjectCategoryView StatusLast Update
0037306mantisbtcode cleanuppublic2026-07-13 18:40
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0037306: Build scripts: use subprocess module
Description

The scripts use a variety of methods to run external processes: os.system, os.popen (deprecated in Python 3.14), subprocess.call and subprocess.check_call.

We should standardise on using subprocess.run (available since Python 3.5) instead.

Also avoid creating a sub shell.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master aca9cbee

2026-07-12 12:16

dregad


Details Diff
Replace os.system by subprocess.run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/docbook-manual-repo.py Diff File

MantisBT: master c515fd3e

2026-07-12 18:47

dregad


Details Diff
Replace os.popen by subprocess.run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/docbook-manual-repo.py Diff File

MantisBT: master 1fcde447

2026-07-12 19:00

dregad


Details Diff
Replace subprocess call/check_call by run

Fixes 0037306
Affected Issues
0037306
mod - build/buildrelease-repo.py Diff File
mod - build/buildrelease.py Diff File
mod - build/docbook-manual.py Diff File