File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,10 @@ jobs:
33
33
run : |
34
34
chmod +x setup-binaries.sh
35
35
./setup-binaries.sh windows
36
- # Install Python dependencies for Windows
37
36
cd python-runtime-windows
38
37
./python.exe get-pip.py
39
- # Wait a moment for pip to be properly installed
40
38
sleep 2
41
- ./python .exe -m pip install -r ../requirements.txt
39
+ ./Scripts/pip .exe install -r ../requirements.txt
42
40
43
41
- name : Build Windows application
44
42
run : npm run build:win
Original file line number Diff line number Diff line change @@ -39,10 +39,16 @@ jobs:
39
39
./setup-binaries.sh windows
40
40
# Install Python dependencies for Windows
41
41
cd python-runtime-windows
42
+ # Fix the python._pth file to include Scripts directory
43
+ echo "python311.zip" > python._pth
44
+ echo "." >> python._pth
45
+ echo "Scripts" >> python._pth
46
+ echo "Lib/site-packages" >> python._pth
47
+ echo "import site" >> python._pth
48
+ # Install pip
42
49
./python.exe get-pip.py
43
- # Wait a moment for pip to be properly installed
44
- sleep 2
45
- ./python.exe -m pip install -r ../requirements.txt
50
+ # Install dependencies using the Scripts/pip.exe directly
51
+ ./Scripts/pip.exe install -r ../requirements.txt
46
52
else
47
53
./setup-binaries.sh macos
48
54
fi
Original file line number Diff line number Diff line change @@ -88,16 +88,18 @@ setup_windows() {
88
88
89
89
curl -L -o python-runtime-windows/get-pip.py " https://bootstrap.pypa.io/get-pip.py"
90
90
91
+ # Configure python._pth to include Scripts directory and enable site-packages
91
92
echo " python311.zip" > python-runtime-windows/python._pth
92
93
echo " ." >> python-runtime-windows/python._pth
94
+ echo " Scripts" >> python-runtime-windows/python._pth
93
95
echo " Lib/site-packages" >> python-runtime-windows/python._pth
94
96
echo " import site" >> python-runtime-windows/python._pth
95
97
96
98
print_success " Windows Python runtime downloaded"
97
99
print_warning " Note: To install dependencies on Windows:"
98
100
print_warning " cd python-runtime-windows"
99
101
print_warning " python get-pip.py"
100
- print_warning " python -m pip install -r ../requirements.txt"
102
+ print_warning " Scripts/ pip install -r ../requirements.txt"
101
103
else
102
104
print_warning " Windows Python runtime already exists, skipping..."
103
105
fi
You can’t perform that action at this time.
0 commit comments