We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18eb947 commit 16291dbCopy full SHA for 16291db
builders/python-builder.psm1
@@ -94,6 +94,24 @@ class PythonBuilder {
94
return "$($this.Version.Major).$($this.Version.Minor).$($this.Version.Patch)"
95
}
96
97
+ [string] GetHardwareArchitecture() {
98
+ <#
99
+ .SYNOPSIS
100
+ The hardware architecture (x64, arm64) without any Python free threading suffix.
101
+ #>
102
+
103
+ return $this.Architecture.Replace("-freethreaded", "")
104
+ }
105
106
+ [bool] IsFreeThreaded() {
107
108
109
+ Check if Python version is free threaded.
110
111
112
+ return $this.Architecture.EndsWith("-freethreaded")
113
114
115
[void] PreparePythonToolcacheLocation() {
116
<#
117
.SYNOPSIS
0 commit comments