Skip to content

Commit f847dba

Browse files
authored
Update WindowsQuickStart.md
Update the commands and instructions to account for Python version change.
1 parent e63036e commit f847dba

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/WindowsQuickStart.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ automated fashion.
2222
```cmd
2323
curl.exe -sOL https://aka.ms/vs/17/release/vs_community.exe
2424
vs_community.exe ^
25-
--add Component.CPython39.x64 ^
2625
--add Microsoft.NetCore.Component.SDK ^
2726
--add Microsoft.VisualStudio.Component.Git ^
2827
--add Microsoft.VisualStudio.Component.VC.CMake.Project ^
@@ -35,8 +34,9 @@ vs_community.exe ^
3534
del /q vs_community.exe
3635
```
3736

38-
> [!IMPORTANT]
39-
> On ARM64, Visual Studio doesn't include Python. If you are building Swift on an ARM64 processor, install Python 3.10.1 from https://www.python.org/downloads/release/python-3101/ and don't include the `Component.CPython39.x64` line in the command above.
37+
### Install Python
38+
39+
The `repo` tool uses Python, and as such, we need a Python installation on the host. We recommend installing **Python 3.9.10** to ensure compatibility with the provided scripts and examples. Download and install Python 3.9.10 for your platform from [https://www.python.org/downloads/release/python-3910/](https://www.python.org/downloads/release/python-3910/).
4040

4141
### Enable Symbolic Links Support
4242

@@ -98,32 +98,32 @@ curl.exe -sLo S:\Applications\repo https://storage.googleapis.com/git-repo-downl
9898
md SourceCache
9999
cd SourceCache
100100
set PYTHONUTF8=1
101-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo init -u https://github.com/compnerd/swift-build
102-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync -j 8
101+
python S:\Applications\repo init -u https://github.com/compnerd/swift-build
102+
python S:\Applications\repo sync -j 8
103103
```
104104

105-
Subsequently, you can update all the repositories using `"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync`.
105+
Subsequently, you can update all the repositories using `python S:\Applications\repo sync`.
106106

107107
If you wish to sync to a point that is known to build successfully, you can use the smart sync option:
108108

109109
```
110-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync -s
110+
python S:\Applications\repo sync -s
111111
```
112112

113113
You may also sync to specific toolchain versions by providing `repo` with the corresponding manifest file. Download `swift-build/stable.xml` at some revision, then sync with
114114
```
115-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync -m path\to\stable.xml
115+
python S:\Applications\repo sync -m path\to\stable.xml
116116
```
117117

118118
If you wish to build a specific release branch, you can specify the `-b` (branch) option to `repo` to checkout the branch:
119119
```
120-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo init -b release/6.0
121-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo sync
120+
python S:\Applications\repo init -b release/6.0
121+
python S:\Applications\repo sync
122122
```
123123

124124
You may also do this at the initial checkout time as:
125125
```
126-
"%ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python39_64\python.exe" S:\Applications\repo init -u https://github.com/compnerd/swift-build -b release/6.0
126+
python S:\Applications\repo init -u https://github.com/compnerd/swift-build -b release/6.0
127127
```
128128

129129
## Building
@@ -192,7 +192,7 @@ The following content in your Powershell profile file (whose path is stored in t
192192
function Set-SwiftEnv {
193193
$SwiftRoot = "S:\Program Files\Swift"
194194
$env:SDKROOT = "${SwiftRoot}\Platforms\Windows.platform\Developer\SDKs\Windows.sdk"
195-
$env:Path = "${env:ProgramFiles}\Python39;${SwiftRoot}\Runtimes\0.0.0\usr\bin;${SwiftRoot}\Toolchains\0.0.0+Asserts\usr\bin;${env:Path}"
195+
$env:Path = "S:\b\Python${env:PROCESSOR_ARCHITECTURE}-3.9.10\tools;${SwiftRoot}\Runtimes\0.0.0\usr\bin;${SwiftRoot}\Toolchains\0.0.0+Asserts\usr\bin;${env:Path}"
196196
}
197197
Set-Alias -Name SwiftEnv -Value Set-SwiftEnv
198198
```

0 commit comments

Comments
 (0)