Skip to content

Commit e32772f

Browse files
committed
chore: Fix python build on windows
1 parent fd21433 commit e32772f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
include-hidden-files: true
3131
name: python-windows
32-
path: D:\a\pybuilder\pybuilder\Python-3.11.8\
32+
path: D:\a\pybuilder\pybuilder\Python-3.11.8\python-build
3333

3434
build-linux:
3535
permissions:

scripts/build.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ msbuild PCBuild/pcbuild.sln /p:Configuration=Release /p:Platform=Win32 /p:Runtim
2525
msbuild PCBuild/pcbuild.sln /p:Configuration=Debug /p:Platform=Win32 /p:RuntimeLibrary=MT
2626
# verify python is installed
2727
PCbuild/win32/python.exe --version
28+
29+
New-Item -ItemType Directory -Path "./python-build" -Force
30+
31+
# copy python 3.11.8 to python-build
32+
Copy-Item -Path "./PCbuild/win32/python3.dll" -Destination "./python-build/python3.dll"
33+
Copy-Item -Path "./PCbuild/win32/python3.lib" -Destination "./python-build/python3.lib"
34+
35+
Copy-Item -Path "./PCbuild/win32/python3_d.dll" -Destination "./python-build/python3_d.dll"
36+
Copy-Item -Path "./PCbuild/win32/python3_d.lib" -Destination "./python-build/python3_d.lib"
37+
38+

0 commit comments

Comments
 (0)